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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin739
RA = 193.637, Dec = 22.1808
tmin = 430876801, tmax = 431136001
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='988249', job_status='RUN', time_executed='2021-09-06 09:07:47.197245', time_epoch_executed='1630944467.2' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='739'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/988249

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/988249/ft1_4FGL_J1254.5+2210_daily_bin739.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/988249/ft2_4FGL_J1254.5+2210_daily_bin739.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/988249/ft1_4FGL_J1254.5+2210_daily_bin739.fits outfile=/scratch/kocevski/988249/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin739.fits ra=193.637 dec=22.1808 rad=12.0 tmin=430876801.0 tmax=431136001.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 5.56
user 5.14
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/988249/ft1_filtered_4FGL_J1254.5+2210_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/988249/ft2_4FGL_J1254.5+2210_daily_bin739.fits sctable="SC_DATA" expcube=/scratch/kocevski/988249/ltcube_430876801_431136001_4FGL_J1254.5+2210_daily_bin739.fits outfile=/scratch/kocevski/988249/expmap_430876801_431136001_4FGL_J1254.5+2210_daily_bin739.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/988249/ltcube_430876801_431136001_4FGL_J1254.5+2210_daily_bin739.fits
.....................!
real 191.68
user 184.86
sys 4.84

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/988249/ft1_filtered_4FGL_J1254.5+2210_daily_bin739.fits scfile=/scratch/kocevski/988249/ft2_4FGL_J1254.5+2210_daily_bin739.fits outfile=/scratch/kocevski/988249/cmap_430876801_431136001_4FGL_J1254.5+2210_daily_bin739.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/988249/ft1_filtered_4FGL_J1254.5+2210_daily_bin739.fits scfile=/scratch/kocevski/988249/ft2_4FGL_J1254.5+2210_daily_bin739.fits outfile=/scratch/kocevski/988249/cmap_HighResolution_430876801_431136001_4FGL_J1254.5+2210_daily_bin739.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    13.214       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .84849       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.1620       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5909       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12724E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.078       1.0000         .10000E-03   10000.    
    16 'norm      '    .11090E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0757       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3816       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11191E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.6665       1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.370       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .19886E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    20.872       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2663       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .74554       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=   4330.794     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     3699 TOTAL
                     EDM=   .95E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5392       -.12390E-07** at limit **
   2  Prefactor     .10000E-03    1.2256       -.12945E-07** at limit **
   3  norm          13.216        5.3361        .21098E-06    .35957E-04
   4  Prefactor     .10000E-03    1.3417       -.70836E-07** at limit **
   5  Prefactor     .84648        2.4036       -.19849E-07   -.56463E-04
   6  Prefactor     .10000E-03    3.1009        .89587E-07** at limit **
   7  norm          2.1621        .46944        .16537E-09    .33189E-04
   8  norm          2.5913        4.2797        .14090E-05    .13709E-05
   9  Prefactor     .10000E-03    6.7417        .12447E-06** at limit **
  10  Prefactor     .10000E-03    7.3035       -.40922E-06** at limit **
  11  Prefactor     .10000E-03    42.560       -.38678E-05** at limit **
  12  Prefactor     .10000E-03    233.98        .37860E-05** at limit **
  13  Prefactor     .10000E-03    65.877       -.20158E-05** at limit **
  14  Prefactor     .10000E-03    7.4989        .22151E-06** at limit **
  15  Prefactor     25.087        17.624        .21475E-06    .32508E-04
  16  norm          .10000E-03    9.1738        .35844E-06** at limit **
  17  Prefactor     3.0754        23.693        .12802E-06    .20284E-05
  18  Prefactor     3.3787        72.843        .31610E-05   -.14180E-04
  19  norm          .10000E-03    1.7176       -.11444E-07** at limit **
  20  norm          .10000E-03    1.6085        .16038E-07** at limit **
  21  norm          .10000E-03    2.5035        .78961E-08** at limit **
  22  norm          .10000E-03    46.061        .53656E-05** at limit **
  23  norm          2.6665        5.6084       -.22209E-06   -.61428E-04
  24  Prefactor     22.370        22.432       -.32504E-07    .16553E-06
  25  norm          .10000E-03    6.8811        .48627E-07** at limit **
  26  Prefactor     .10000E-03    64.226       -.82142E-06** at limit **
  27  Prefactor     20.864        30.882        .10624E-06    .32245E-05
  28  Normalizat    1.2661        .22456       -.30318E-06   -.10281E-04
  29  Prefactor     .74571        .21332       -.20003E-06   -.18050E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.2158
  Prefactor  = 0.0001
  Prefactor  = 0.846482
  Prefactor  = 0.0001
  norm       = 2.1621
  norm       = 2.59127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.0867
  norm       = 0.0001
  Prefactor  = 3.07535
  Prefactor  = 3.37874
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.66649
  Prefactor  = 22.3702
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8641
  Normalizat = 1.26614
  Prefactor  = 0.745709
 **********
 **   18 **HESSE 
 **********

 FCN=   4330.794     FROM HESSE     STATUS=OK           549 CALLS     4248 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5655        .79713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.2310        .71140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.216        5.2940        .91863E-04   -1.4981    
   4  Prefactor     .10000E-03    1.3490        .74388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .84648        2.2219        .15973E-02   -1.5524    
   6  Prefactor     .10000E-03    3.1089        .11317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.1621        .47120        .19944E-04   -1.5414    
   8  norm          2.5913        4.2722        .84668E-03   -1.5386    
   9  Prefactor     .10000E-03    6.7596        .16689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.3243        .17370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    42.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    234.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    65.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.5816        .17594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.087        17.580        .79991E-04   -1.4706    
  16  norm          .10000E-03    9.4436        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.0754        23.468        .23128E-03   -1.5357    
  18  Prefactor     3.3787        72.276        .11002E-02   -1.5340    
  19  norm          .10000E-03    1.7266        .84219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.6117        .81497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.5046        .10169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    46.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.6665        5.5951        .21815E-03   -1.5381    
  24  Prefactor     22.370        22.433        .42344E-03   -1.4762    
  25  norm          .10000E-03    6.9290        .16842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    65.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     20.864        30.913        .87672E-04   -1.4794    
  28  Normalizat    1.2661        .26775        .24069E-03   -.84583    
  29  Prefactor     .74571        .25405        .29746E-03   -1.0176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28785e-09
Minuit parameter uncertainties:
  1  2.52804e-08
  2  5.64528e-08
  3  5.29414
  4  3.04416e-06
  5  2.22213
  6  9.53682e-07
  7  0.471197
  8  4.27275
  9  2.75656e-06
  10  5.23693e-06
  11  2.36772e-05
  12  5.74886e-05
  13  4.27369e-05
  14  3.5754e-07
  15  17.5833
  16  9.19883e-07
  17  17
  18  31.2966
  19  4.09734e-07
  20  9.18515e-08
  21  4.382e-08
  22  3.70737e-05
  23  5.59622
  24  22.4418
  25  7.86722e-06
  26  2.24923e-05
  27  30.9365
  28  0.268043
  29  0.254446
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.575e-07  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.457e-01  2.544e-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.266e+00  2.680e-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.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/988249/likelihoodResults_430876801_431136001_4FGL_J1254.5+2210_daily_bin739.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) = 4330.79466334
delta logL = -0.000628032570603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4330.79403532
delta logL = -1.6864760255e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1079       1.0000          .0000       10.000    
     3 'Normalizat'    1.2662       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74569       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=   4330.794     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      247 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10118E-03    54.612        .17835E-02** at limit **
   2  Index         2.1571        6.0275        .50000       -.20522E-04
   3  Normalizat    1.2661        .14591E-01    .24069E-03    .14548E-04
   4  Prefactor     .74571        .14285E-01    .29746E-03    .21862E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101179
  Index      = 2.15709
  Normalizat = 1.26614
  Prefactor  = 0.745709
 **********
 **   18 **HESSE 
 **********

 FCN=   4330.794     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10118E-03    311.99        .35670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1571        8.7820        .50000       -.60478    
   3  Normalizat    1.2661        .36343E-01    .96278E-05   -.84583    
   4  Prefactor     .74571        .35569E-01    .11898E-04   -1.0176    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.81097e-08
Minuit parameter uncertainties:
  1  0.0385642
  2  457.616
  3  0.0363435
  4  0.0355704
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/988249': 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) = 4330.79403504
delta logL = 2.66471943178e-07

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.012e-04  3.856e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.157e+00  4.576e+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.457e-01  3.557e-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.266e+00  3.634e-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/988249/cmap_HighResolution_430876801_431136001_4FGL_J1254.5+2210_daily_bin739.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-03', job_status='DONE', photon_flux_upper_limit='8.13e-08', time_completed='2021-09-06 09:18:44.481759', job_id='988249', GAL2='0.75', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1630945124.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='2.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='739' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:18:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 988249: <4FGL_J1254.5+2210_daily_bin739> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin739 193.637 22.1808 430876801 431136001 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 :                                   653.36 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             253.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            783 sec.

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

