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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin635
RA = 193.637, Dec = 22.1808
tmin = 403920001, tmax = 404179201
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='988097', job_status='RUN', time_executed='2021-09-06 09:09:43.241069', time_epoch_executed='1630944583.24' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/988097

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/988097/ft1_4FGL_J1254.5+2210_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/988097/ft2_4FGL_J1254.5+2210_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/988097/ft1_4FGL_J1254.5+2210_daily_bin635.fits outfile=/scratch/kocevski/988097/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin635.fits ra=193.637 dec=22.1808 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.01
user 9.68
sys 0.29

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/988097/ft1_filtered_4FGL_J1254.5+2210_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/988097/ft2_4FGL_J1254.5+2210_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/988097/ltcube_403920001_404179201_4FGL_J1254.5+2210_daily_bin635.fits outfile=/scratch/kocevski/988097/expmap_403920001_404179201_4FGL_J1254.5+2210_daily_bin635.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/988097/ltcube_403920001_404179201_4FGL_J1254.5+2210_daily_bin635.fits
.....................!
real 192.77
user 187.39
sys 5.06

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/988097/ft1_filtered_4FGL_J1254.5+2210_daily_bin635.fits scfile=/scratch/kocevski/988097/ft2_4FGL_J1254.5+2210_daily_bin635.fits outfile=/scratch/kocevski/988097/cmap_403920001_404179201_4FGL_J1254.5+2210_daily_bin635.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.62
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/988097/ft1_filtered_4FGL_J1254.5+2210_daily_bin635.fits scfile=/scratch/kocevski/988097/ft2_4FGL_J1254.5+2210_daily_bin635.fits outfile=/scratch/kocevski/988097/cmap_HighResolution_403920001_404179201_4FGL_J1254.5+2210_daily_bin635.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.62
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    12.014       1.0000         .10000E-03   10000.    
     3 'norm      '    12.702       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4142       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5216       1.0000         .10000E-03   10000.    
     8 'norm      '    13.245       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10611E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11410E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10801E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.735       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10367E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4527       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.4268       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.817       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0111       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3086       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=   2452.371     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3703 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6665       -.25580E-08** at limit **
   2  Prefactor     12.016        8.8378        .99704E-07    .29287E-05
   3  norm          12.701        6.5277       -.23006E-06   -.21578E-03
   4  Prefactor     2.4141        2.9016        .27973E-08   -.17369E-03
   5  Prefactor     .10000E-03    1.6472       -.29906E-07** at limit **
   6  Prefactor     .10000E-03    5.0015        .20635E-07** at limit **
   7  norm          1.5216        .67974        .12814E-07   -.24355E-03
   8  norm          13.244        9.6070       -.22075E-07   -.18117E-03
   9  Prefactor     .10000E-03    14.344        .34373E-07** at limit **
  10  Prefactor     .10000E-03    69.642        .32364E-04** at limit **
  11  Prefactor     .10000E-03    58.534       -.26617E-04** at limit **
  12  Prefactor     .10000E-03    157.45       -.68112E-04** at limit **
  13  Prefactor     .10000E-03    79.197        .58440E-04** at limit **
  14  Prefactor     21.745        21.852       -.73607E-06   -.26853E-04
  15  Prefactor     .10000E-03    34.128        .37598E-05** at limit **
  16  norm          .10003E-03    8.2145        .33733E-05** at limit **
  17  Prefactor     1.4542        103.32       -.28237E-05   -.67257E-04
  18  Prefactor     .10000E-03    15.150       -.16107E-04** at limit **
  19  norm          .10000E-03    9.9961       -.58805E-06** at limit **
  20  norm          .10000E-03    2.3132       -.17112E-07** at limit **
  21  norm          .10000E-03    2.9692       -.29064E-07** at limit **
  22  norm          .10000E-03    13.978        .11059E-04** at limit **
  23  norm          .10000E-03    4.6421       -.62427E-08** at limit **
  24  Prefactor     .10000E-03    57.869       -.29787E-04** at limit **
  25  norm          3.4387        20.757        .82312E-06   -.76118E-04
  26  Prefactor     .10000E-03    7.6236        .12435E-06** at limit **
  27  Prefactor     17.821        29.889        .81794E-06   -.97459E-05
  28  Normalizat    1.0112        .32842        .11308E-06   -.21250E-03
  29  Prefactor     1.3083        .33189       -.91688E-06   -.22219E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.0162
  norm       = 12.701
  Prefactor  = 2.41406
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.52162
  norm       = 13.2444
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7448
  Prefactor  = 0.0001
  norm       = 0.000100031
  Prefactor  = 1.45416
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.43872
  Prefactor  = 0.0001
  Prefactor  = 17.8207
  Normalizat = 1.01121
  Prefactor  = 1.30829
 **********
 **   18 **HESSE 
 **********

 FCN=   2452.371     FROM HESSE     STATUS=OK           541 CALLS     4244 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6787        .92560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.016        8.8311        .11557E-03   -1.5015    
   3  norm          12.701        6.5303        .85905E-04   -1.4995    
   4  Prefactor     2.4141        2.9000        .87941E-04   -1.5397    
   5  Prefactor     .10000E-03    1.6600        .62034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.0072        .10815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5216        .67877        .25491E-04   -1.5461    
   8  norm          13.244        9.6040        .11006E-03   -1.4980    
   9  Prefactor     .10000E-03    14.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    72.071        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    58.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    157.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    79.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.745        21.861        .85914E-04   -1.4775    
  15  Prefactor     .10000E-03    34.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10003E-03    17.933        .27151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4542        104.89        .35735E-03   -1.5467    
  18  Prefactor     .10000E-03    15.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    10.202        .15266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.3334        .73538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.9706        .83342E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    13.985        .18089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.6448        .10418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    57.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.4387        20.647        .21851E-03   -1.5337    
  26  Prefactor     .10000E-03    7.6246        .13355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     17.821        29.911        .94885E-04   -1.4863    
  28  Normalizat    1.0112        .38813        .29451E-03   -.92656    
  29  Prefactor     1.3083        .39489        .27705E-03   -.83061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11536e-09
Minuit parameter uncertainties:
  1  3.77976e-07
  2  8.83206
  3  6.53066
  4  2.90019
  5  3.91978e-06
  6  7.37886e-08
  7  0.67877
  8  9.60511
  9  4.46036e-06
  10  0.00111445
  11  3.45111e-05
  12  0.000147659
  13  1.05318e-05
  14  21.8693
  15  3.80607e-05
  16  0.00149812
  17  24.7441
  18  7.50485e-06
  19  2.03629e-05
  20  1.67373e-06
  21  6.233e-07
  22  3.63054e-07
  23  8.14317e-07
  24  2.2046e-05
  25  16.8605
  26  1.13471e-06
  27  29.9359
  28  0.389225
  29  0.395794
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  2.174e+01  2.187e+01  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.308e+00  3.958e-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.011e+00  3.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.40
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 8.53e-08 +/- 8.57e-08
Energy Flux (Fixed Index): 4.79e-05 +/- 4.82e-05

TS (Fixed Index): 1.40
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 2.69e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/988097/likelihoodResults_403920001_404179201_4FGL_J1254.5+2210_daily_bin635.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): 0
logL (Free Index) = 2451.18562279
delta logL = 1.18547459685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2451.17266198
delta logL = 1.19843540664

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6473       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1926       1.0000          .0000       10.000    
     3 'Normalizat'    .86060       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4036       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.

 FCN=   2451.173     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      257 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6564        61.678        .46673E-02    .39803E-04
   2  Index         3.1925        2.7600        .59080E-01    .68447E-04
   3  Normalizat    .86111        .15123        .71254E-01   -.25976E-05
   4  Prefactor     1.4029        .14844        .60668E-01   -.86076E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.65637
  Index      = 3.19248
  Normalizat = 0.86111
  Prefactor  = 1.40285
 **********
 **   18 **HESSE 
 **********

 FCN=   2451.173     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6564        13.202        .61677E-04   -1.5276    
   2  Index         3.1925        1.2148        .24749E-02   -.36988    
   3  Normalizat    .86111        .39143        .31529E-03   -.97840    
   4  Prefactor     1.4029        .40281        .26827E-03   -.80298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.85718e-09
Minuit parameter uncertainties:
  1  13.2107
  2  1.22895
  3  0.392725
  4  0.403717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/988097': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2451.17265575
delta logL = 1.19844162889

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  4.656e+00  1.321e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  3.192e+00  1.229e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  1.403e+00  4.037e-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:  8.611e-01  3.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.96
Ra Dec: 193.637 22.181
Photon Index (Free Index): 3.19 +/- 1.23
Photon Flux (Free Index): 2.23e-07 +/- 1.50e-07
Energy Flux (Free Index): 4.09e-05 +/- 2.75e-05

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/988097/cmap_HighResolution_403920001_404179201_4FGL_J1254.5+2210_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-02', comment='SUCCESS', photon_flux='8.53e-08', energy_flux2='4.09e-05', photon_flux_error='8.57e-08', dlogl='1.20e+00', energy_flux='4.79e-05', photon_flux2='2.23e-07', job_status='DONE', time_completed='2021-09-06 09:18:37.210770', photon_index_error2='1.23', photon_index2='3.19', ts='1.40', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', photon_flux_upper_limit='2.69e-07', energy_flux_error2='2.75e-05', EG='1.01', time_epoch_completed='1630945117.21', return_code='0', job_id='988097', GAL2='1.40', EG2='0.86', return_code2='0', energy_flux_error='4.82e-05', photon_flux_error2='1.50e-07', ts2='3.96', photon_index='2.09' WHERE bin_id='635' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:18:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 988097: <4FGL_J1254.5+2210_daily_bin635> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin635 193.637 22.1808 403920001 404179201 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 :                                   530.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             197.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            788 sec.

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

