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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1303
RA = 193.637, Dec = 22.1808
tmin = 577065601, tmax = 577324801
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='991628', job_status='RUN', time_executed='2021-09-06 09:18:12.128737', time_epoch_executed='1630945092.13' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1303'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991628

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991628/ft1_4FGL_J1254.5+2210_daily_bin1303.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991628/ft2_4FGL_J1254.5+2210_daily_bin1303.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991628/ft1_4FGL_J1254.5+2210_daily_bin1303.fits outfile=/scratch/kocevski/991628/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1303.fits ra=193.637 dec=22.1808 rad=12.0 tmin=577065601.0 tmax=577324801.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.09
user 2.86
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991628/ft1_filtered_4FGL_J1254.5+2210_daily_bin1303.fits evtable="EVENTS" scfile=/scratch/kocevski/991628/ft2_4FGL_J1254.5+2210_daily_bin1303.fits sctable="SC_DATA" expcube=/scratch/kocevski/991628/ltcube_577065601_577324801_4FGL_J1254.5+2210_daily_bin1303.fits outfile=/scratch/kocevski/991628/expmap_577065601_577324801_4FGL_J1254.5+2210_daily_bin1303.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/991628/ltcube_577065601_577324801_4FGL_J1254.5+2210_daily_bin1303.fits
.....................!
real 189.85
user 185.45
sys 3.74

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/991628/ft1_filtered_4FGL_J1254.5+2210_daily_bin1303.fits scfile=/scratch/kocevski/991628/ft2_4FGL_J1254.5+2210_daily_bin1303.fits outfile=/scratch/kocevski/991628/cmap_577065601_577324801_4FGL_J1254.5+2210_daily_bin1303.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991628/ft1_filtered_4FGL_J1254.5+2210_daily_bin1303.fits scfile=/scratch/kocevski/991628/ft2_4FGL_J1254.5+2210_daily_bin1303.fits outfile=/scratch/kocevski/991628/cmap_HighResolution_577065601_577324801_4FGL_J1254.5+2210_daily_bin1303.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=193.637 yref=22.1808 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.7524       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1173       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4424       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .55896E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    10.292       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.214       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12768E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.110       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.411       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6580       1.0000         .10000E-03   10000.    
    20 'norm      '    .40877E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    2.8940       1.0000         .10000E-03   10000.    
    22 'norm      '    21.787       1.0000         .10000E-03   10000.    
    23 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .88049E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.3338       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.642       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2902       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .79248       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=   5735.660     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     3803 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4716        .33306E-07** at limit **
   2  Prefactor     .10000E-03    2.1861        .10155E-06** at limit **
   3  norm          7.7524        3.7629       -.64589E-07   -.20493E-03
   4  Prefactor     7.1174        3.0036        .43406E-07    .57914E-04
   5  Prefactor     3.4422        3.5608        .34993E-06   -.17508E-03
   6  Prefactor     .10000E-03    2.2855        .18313E-07** at limit **
   7  norm          .55898E-01    .17762        .24969E-06   -.35245E-03
   8  norm          10.292        4.8709       -.46569E-07   -.26049E-03
   9  Prefactor     29.214        20.902        .35777E-06   -.35632E-04
  10  Prefactor     .10000E-03    3.9447       -.59590E-07** at limit **
  11  Prefactor     .10005E-03    52.522        .85358E-05** at limit **
  12  Prefactor     .10000E-03    23.330        .11765E-05** at limit **
  13  Prefactor     .10001E-03    34.397       -.44340E-05** at limit **
  14  Prefactor     .10000E-03    3.0947        .15048E-07** at limit **
  15  Prefactor     .10000E-03    8.7336        .40903E-07** at limit **
  16  norm          .10000E-03    1.7583        .26999E-06** at limit **
  17  Prefactor     12.109        18.253        .15860E-05   -.30208E-04
  18  Prefactor     29.433        27.472        .13231E-05    .19875E-03
  19  norm          1.6575        2.7568        .29123E-06    .18694E-04
  20  norm          .10016E-03    2.2426        .82462E-06** at limit **
  21  norm          2.9154        6.2275       -.56467E-06   -.35743E-03
  22  norm          21.784        18.480        .17979E-06    .73836E-04
  23  norm          .10000E-03    6.4830        .15040E-06** at limit **
  24  Prefactor     .10000E-03    18.681       -.68099E-06** at limit **
  25  norm          .10220E-03    6.8181       -.20173E-05** at limit **
  26  Prefactor     5.3355        15.863        .61407E-05   -.94813E-04
  27  Prefactor     12.641        14.903       -.40395E-06    .10829E-04
  28  Normalizat    1.2902        .19820       -.15739E-05   -.69160E-04
  29  Prefactor     .79241        .19480       -.56960E-06   -.13179E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.75245
  Prefactor  = 7.11743
  Prefactor  = 3.44225
  Prefactor  = 0.0001
  norm       = 0.0558979
  norm       = 10.2915
  Prefactor  = 29.2141
  Prefactor  = 0.0001
  Prefactor  = 0.000100047
  Prefactor  = 0.000100001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.1092
  Prefactor  = 29.4328
  norm       = 1.65753
  norm       = 0.000100157
  norm       = 2.91541
  norm       = 21.7836
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000102201
  Prefactor  = 5.3355
  Prefactor  = 12.6411
  Normalizat = 1.29022
  Prefactor  = 0.792411
 **********
 **   18 **HESSE 
 **********

 FCN=   5735.660     FROM HESSE     STATUS=OK           553 CALLS     4356 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4851        .89630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9822        .21653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.7524        3.7656        .91667E-04   -1.5151    
   4  Prefactor     7.1174        3.0075        .76589E-04   -1.5174    
   5  Prefactor     3.4422        3.5364        .12614E-03   -1.5337    
   6  Prefactor     .10000E-03    2.2922        .11178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .55898E-01    .18627        .53025E-03   -1.5661    
   8  norm          10.292        4.8637        .10967E-03   -1.5066    
   9  Prefactor     29.214        20.894        .74125E-04   -1.4626    
  10  Prefactor     .10000E-03    3.9585        .14684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10005E-03    56.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    35.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1046        .13010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.7432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.7667        .97826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.109        18.317        .57556E-03   -1.5012    
  18  Prefactor     29.433        27.568        .73877E-04   -1.4622    
  19  norm          1.6575        2.7288        .15633E-03   -1.5450    
  20  norm          .10016E-03    24.697        .17993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9154        5.3981        .22506E-03   -1.5366    
  22  norm          21.784        18.454        .85813E-04   -1.4774    
  23  norm          .10000E-03    6.5520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10220E-03    85.416        .35425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.3355        16.291        .87009E-03   -1.5246    
  27  Prefactor     12.641        14.908        .11266E-03   -1.4997    
  28  Normalizat    1.2902        .23278        .23945E-03   -.83859    
  29  Prefactor     .79241        .23108        .30530E-03   -1.0001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71327e-08
Minuit parameter uncertainties:
  1  2.92093e-06
  2  1.74503e-05
  3  3.76573
  4  3.0076
  5  3.53661
  6  3.34308e-06
  7  0.186271
  8  4.8639
  9  20.8996
  10  4.54101e-06
  11  0.00327752
  12  0.000280759
  13  0.00136847
  14  3.73629e-06
  15  7.71606e-06
  16  3.32662e-06
  17  18.3254
  18  27.5803
  19  2.72899
  20  0.00394195
  21  5.39903
  22  18.4585
  23  5.43655e-05
  24  0.000149866
  25  0.0274633
  26  16.3048
  27  14.9125
  28  0.23297
  29  0.231361
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.736e-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.924e-01  2.314e-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.290e+00  2.330e-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: 5.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991628/likelihoodResults_577065601_577324801_4FGL_J1254.5+2210_daily_bin1303.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) = 5735.66181354
delta logL = -0.0015228378752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5735.66029136
delta logL = -6.52949893265e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10519E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0667       1.0000          .0000       10.000    
     3 'Normalizat'    1.2901       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79254       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=   5735.660     FROM MIGRAD    STATUS=FAILED        91 CALLS      243 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10139E-03    38.052        .13273E-02** at limit **
   2  Index         2.0091        8.7475        .50000        .48342E-04
   3  Normalizat    1.2902        .16530E-01    .23946E-03   -.28866E-04
   4  Prefactor     .79241        .17028E-01    .30530E-03   -.20295E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5735.660     FROM SIMPLEX   STATUS=UNCHANGED    120 CALLS      363 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10139E-03    38.052        .29594E-03** at limit **
   2  Index         2.0091        8.7475        .65261E-03    .48342E-04
   3  Normalizat    1.2902        .16530E-01    .29415E-05   -.28866E-04
   4  Prefactor     .79241        .17028E-01    .38524E-05   -.20295E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5735.660     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      409 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.542        .26546E-02** at limit **
   2  Index         1.6706        5.6982        .50000        .87402E-07
   3  Normalizat    1.2902        .15692E-01    .95782E-05    .49590E-03
   4  Prefactor     .79241        .16165E-01    .12212E-04    .38988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.67056
  Normalizat = 1.29022
  Prefactor  = 0.792414
 **********
 **   18 **HESSE 
 **********

 FCN=   5735.660     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      438 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    187.04        .53093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6706        6.7508        .50000       -.72868    
   3  Normalizat    1.2902        .35806E-01    .19156E-05   -.83859    
   4  Prefactor     .79241        .36888E-01    .24424E-05   -1.0001    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.47803e-11
Minuit parameter uncertainties:
  1  0.000129529
  2  571.639
  3  0.0358063
  4  0.0368893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991628': 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) = 5735.66028766
delta logL = 3.03995057038e-06

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.295e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.671e+00  5.716e+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.924e-01  3.689e-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.290e+00  3.581e-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/991628/cmap_HighResolution_577065601_577324801_4FGL_J1254.5+2210_daily_bin1303.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.26e-03', job_status='DONE', photon_flux_upper_limit='5.63e-08', time_completed='2021-09-06 09:30:49.178583', job_id='991628', GAL2='0.79', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630945849.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='3.04e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1303' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:30:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 991628: <4FGL_J1254.5+2210_daily_bin1303> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1303> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 09:16:03 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:16:05 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:16:05 2021
Terminated at Mon Sep  6 09:30:49 2021
Results reported at Mon Sep  6 09:30:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1303 193.637 22.1808 577065601 577324801 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 :                                   753.29 sec.
    Max Memory :                                 1160 MB
    Average Memory :                             253.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            886 sec.

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

