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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1472
RA = 193.637, Dec = 22.1808
tmin = 620870401, tmax = 621129601
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='992905', job_status='RUN', time_executed='2021-09-06 09:24:03.408600', time_epoch_executed='1630945443.41' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992905

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992905/ft1_4FGL_J1254.5+2210_daily_bin1472.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992905/ft2_4FGL_J1254.5+2210_daily_bin1472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992905/ft1_4FGL_J1254.5+2210_daily_bin1472.fits outfile=/scratch/kocevski/992905/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1472.fits ra=193.637 dec=22.1808 rad=12.0 tmin=620870401.0 tmax=621129601.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.38
user 3.00
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992905/ft1_filtered_4FGL_J1254.5+2210_daily_bin1472.fits" evtable="EVENTS" scfile=/scratch/kocevski/992905/ft2_4FGL_J1254.5+2210_daily_bin1472.fits sctable="SC_DATA" outfile=/scratch/kocevski/992905/ltcube_620870401_621129601_4FGL_J1254.5+2210_daily_bin1472.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/992905/ft2_4FGL_J1254.5+2210_daily_bin1472.fits
.....................!
real 12.78
user 12.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992905/ft1_filtered_4FGL_J1254.5+2210_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/992905/ft2_4FGL_J1254.5+2210_daily_bin1472.fits sctable="SC_DATA" expcube=/scratch/kocevski/992905/ltcube_620870401_621129601_4FGL_J1254.5+2210_daily_bin1472.fits outfile=/scratch/kocevski/992905/expmap_620870401_621129601_4FGL_J1254.5+2210_daily_bin1472.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/992905/ltcube_620870401_621129601_4FGL_J1254.5+2210_daily_bin1472.fits
.....................!
real 193.09
user 186.35
sys 5.11

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/992905/ft1_filtered_4FGL_J1254.5+2210_daily_bin1472.fits scfile=/scratch/kocevski/992905/ft2_4FGL_J1254.5+2210_daily_bin1472.fits outfile=/scratch/kocevski/992905/cmap_620870401_621129601_4FGL_J1254.5+2210_daily_bin1472.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=193.637 yref=22.1808 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992905/ft1_filtered_4FGL_J1254.5+2210_daily_bin1472.fits scfile=/scratch/kocevski/992905/ft2_4FGL_J1254.5+2210_daily_bin1472.fits outfile=/scratch/kocevski/992905/cmap_HighResolution_620870401_621129601_4FGL_J1254.5+2210_daily_bin1472.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.58
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.365       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .52671       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.1481       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.732       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .50665E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    99.315       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    59.725       1.0000         .10000E-03   10000.    
    16 'norm      '    .16087E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    56.730       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12340E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.7392       1.0000         .10000E-03   10000.    
    21 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    28.595       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.9880       1.0000         .10000E-03   10000.    
    27 'Prefactor '    42.354       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3528       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .48955       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=   2432.426     FROM MIGRAD    STATUS=CONVERGED    707 CALLS     3654 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6525       -.21083E-07** at limit **
   2  Prefactor     .10000E-03    4.9645       -.23788E-07** at limit **
   3  norm          11.368        9.8774       -.12759E-05   -.40319E-03
   4  Prefactor     .10000E-03    3.7004       -.66429E-07** at limit **
   5  Prefactor     .51740        11.100        .35142E-05   -.62356E-03
   6  Prefactor     .10000E-03    21.154       -.91330E-07** at limit **
   7  norm          .10000E-03    .25104       -.11314E-07** at limit **
   8  norm          8.1654        14.135       -.20523E-05   -.31686E-03
   9  Prefactor     .10000E-03    12.442        .22809E-07** at limit **
  10  Prefactor     14.744        24.729       -.26449E-05   -.19268E-03
  11  Prefactor     .10000E-03    160.92       -.88613E-06** at limit **
  12  Prefactor     99.350        121.64        .74106E-06    .19383E-04
  13  Prefactor     .10000E-03    107.58       -.11105E-05** at limit **
  14  Prefactor     .10000E-03    3.8260        .29399E-07** at limit **
  15  Prefactor     59.686        34.679       -.12876E-06   -.13055E-03
  16  norm          .10000E-03    7.4912        .66449E-06** at limit **
  17  Prefactor     56.727        39.118        .53318E-06   -.56474E-05
  18  Prefactor     .10000E-03    42.929        .76578E-06** at limit **
  19  norm          .10000E-03    2.1683        .33295E-07** at limit **
  20  norm          9.7464        6.7478        .22890E-06   -.41139E-04
  21  norm          .10000E-03    15.287       -.91739E-06** at limit **
  22  norm          .10000E-03    14.578       -.59688E-07** at limit **
  23  norm          28.616        11.966        .11165E-06   -.14884E-04
  24  Prefactor     .10000E-03    31.334       -.52552E-06** at limit **
  25  norm          .10000E-03    12.607        .21033E-06** at limit **
  26  Prefactor     4.9954        14.915        .43303E-06   -.67452E-05
  27  Prefactor     42.364        35.712        .45932E-06    .15747E-04
  28  Normalizat    1.3513        .30673       -.17104E-05   -.21187E-03
  29  Prefactor     .49067        .26878       -.48809E-06   -.14048E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.3683
  Prefactor  = 0.0001
  Prefactor  = 0.517396
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.16539
  Prefactor  = 0.0001
  Prefactor  = 14.744
  Prefactor  = 0.0001
  Prefactor  = 99.3499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.6857
  norm       = 0.0001
  Prefactor  = 56.7271
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 9.74638
  norm       = 0.0001
  norm       = 0.0001
  norm       = 28.6162
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 4.99538
  Prefactor  = 42.3642
  Normalizat = 1.35133
  Prefactor  = 0.49067
 **********
 **   18 **HESSE 
 **********

 FCN=   2432.426     FROM HESSE     STATUS=OK           549 CALLS     4203 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6549        .11453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.9692        .10733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.368        9.8668        .11883E-03   -1.5033    
   4  Prefactor     .10000E-03    3.7015        .92610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .51740        8.3019        .81182E-01   -1.5564    
   6  Prefactor     .10000E-03    21.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .25620        .24088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.1654        14.258        .14045E-03   -1.5136    
   9  Prefactor     .10000E-03    12.448        .16994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.744        24.690        .10435E-03   -1.4940    
  11  Prefactor     .10000E-03    161.93        .21151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     99.350        121.50        .20169E-03   -1.3711    
  13  Prefactor     .10000E-03    107.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.8280        .94226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     59.686        34.670        .51916E-04   -1.4161    
  16  norm          .10000E-03    7.5398        .13160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     56.727        39.296        .53261E-04   -1.4200    
  18  Prefactor     .10000E-03    42.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.1742        .70929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.7464        6.7326        .10115E-03   -1.5083    
  21  norm          .10000E-03    15.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    14.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          28.616        11.989        .74920E-04   -1.4638    
  24  Prefactor     .10000E-03    31.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    12.744        .17071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.9954        14.893        .18006E-03   -1.5261    
  27  Prefactor     42.364        35.908        .61598E-04   -1.4405    
  28  Normalizat    1.3513        .35574        .23269E-03   -.82047    
  29  Prefactor     .49067        .30438        .34487E-03   -1.1241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.56053e-10
Minuit parameter uncertainties:
  1  3.4347e-07
  2  6.48794e-07
  3  9.86822
  4  4.54452e-06
  5  4.14534
  6  0.000143226
  7  1.11179e-06
  8  14.2643
  9  3.07385e-05
  10  24.7069
  11  0.000131499
  12  121.804
  13  0.000174657
  14  4.11178e-06
  15  34.6814
  16  1.01677e-05
  17  39.3141
  18  0.000357664
  19  2.19682e-06
  20  6.73314
  21  2.87428e-05
  22  3.38366e-05
  23  11.9903
  24  0.000290318
  25  1.0328e-05
  26  14.9042
  27  35.9261
  28  0.35639
  29  0.3054
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  4.112e-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:  4.907e-01  3.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:  1.351e+00  3.564e-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: 8.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992905/likelihoodResults_620870401_621129601_4FGL_J1254.5+2210_daily_bin1472.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) = 2432.42699936
delta logL = -0.000972577623088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2432.42602672
delta logL = 5.75769263378e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0655       1.0000          .0000       10.000    
     3 'Normalizat'    1.3515       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49049       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=   2432.426     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      246 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10261E-03    5.9878        .97211E-02** at limit **
   2  Index         1.9881        5.8995        .50000        .51848E-04
   3  Normalizat    1.3513        .86856E-02    .23269E-03    .74710E-04
   4  Prefactor     .49067        .81448E-02    .34487E-03    .11976E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102606
  Index      = 1.98811
  Normalizat = 1.35133
  Prefactor  = 0.490674
 **********
 **   18 **HESSE 
 **********

 FCN=   2432.426     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10261E-03    62.003        .99860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9881        7.3936        .50000       -.64648    
   3  Normalizat    1.3513        .28351E-01    .46537E-04   -.82047    
   4  Prefactor     .49067        .26586E-01    .13795E-04   -1.1241    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.33539e-08
Minuit parameter uncertainties:
  1  0.0254488
  2  237.096
  3  0.0283515
  4  0.0265864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992905': 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) = 2432.42602565
delta logL = 1.12867928692e-06

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.026e-04  2.545e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.988e+00  2.371e+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:  4.907e-01  2.659e-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.351e+00  2.835e-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/992905/cmap_HighResolution_620870401_621129601_4FGL_J1254.5+2210_daily_bin1472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.34e-03', job_status='DONE', photon_flux_upper_limit='8.40e-08', time_completed='2021-09-06 09:33:30.103546', job_id='992905', GAL2='0.49', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1630946010.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='1.13e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1472' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:33:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 992905: <4FGL_J1254.5+2210_daily_bin1472> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1472 193.637 22.1808 620870401 621129601 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 :                                   503.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             222.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            774 sec.

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

