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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1109
RA = 193.637, Dec = 22.1808
tmin = 526780801, tmax = 527040001
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='991290', job_status='RUN', time_executed='2021-09-06 09:18:00.014632', time_epoch_executed='1630945080.01' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991290

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991290/ft1_4FGL_J1254.5+2210_daily_bin1109.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991290/ft2_4FGL_J1254.5+2210_daily_bin1109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991290/ft1_4FGL_J1254.5+2210_daily_bin1109.fits outfile=/scratch/kocevski/991290/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1109.fits ra=193.637 dec=22.1808 rad=12.0 tmin=526780801.0 tmax=527040001.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 4.37
user 4.09
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991290/ft1_filtered_4FGL_J1254.5+2210_daily_bin1109.fits evtable="EVENTS" scfile=/scratch/kocevski/991290/ft2_4FGL_J1254.5+2210_daily_bin1109.fits sctable="SC_DATA" expcube=/scratch/kocevski/991290/ltcube_526780801_527040001_4FGL_J1254.5+2210_daily_bin1109.fits outfile=/scratch/kocevski/991290/expmap_526780801_527040001_4FGL_J1254.5+2210_daily_bin1109.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/991290/ltcube_526780801_527040001_4FGL_J1254.5+2210_daily_bin1109.fits
.....................!
real 190.98
user 185.74
sys 4.89

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/991290/ft1_filtered_4FGL_J1254.5+2210_daily_bin1109.fits scfile=/scratch/kocevski/991290/ft2_4FGL_J1254.5+2210_daily_bin1109.fits outfile=/scratch/kocevski/991290/cmap_526780801_527040001_4FGL_J1254.5+2210_daily_bin1109.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/991290/ft1_filtered_4FGL_J1254.5+2210_daily_bin1109.fits scfile=/scratch/kocevski/991290/ft2_4FGL_J1254.5+2210_daily_bin1109.fits outfile=/scratch/kocevski/991290/cmap_HighResolution_526780801_527040001_4FGL_J1254.5+2210_daily_bin1109.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.66
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5483       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5869       1.0000         .10000E-03   10000.    
     3 'norm      '    16.511       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0826       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7558       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.796       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0276       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9956       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    153.70       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2458       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .20852E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.6939       1.0000         .10000E-03   10000.    
    20 'norm      '    .16133E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    18.880       1.0000         .10000E-03   10000.    
    23 'norm      '    17.538       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.7507       1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.483       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .76813       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1026       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=   5273.958     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     3678 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5486        3.8309        .81748E-07    .12404E-03
   2  Prefactor     4.5871        3.1050        .31393E-07    .54581E-04
   3  norm          16.510        7.0434       -.32690E-07    .15290E-04
   4  Prefactor     5.0830        4.7482        .10003E-06    .38089E-04
   5  Prefactor     3.7556        2.9702        .60257E-07    .50215E-04
   6  Prefactor     .10000E-03    3.5463       -.10173E-06** at limit **
   7  norm          .10000E-03    .12842       -.11321E-06** at limit **
   8  norm          10.796        6.3883        .25849E-06    .16858E-03
   9  Prefactor     5.0280        7.7001        .28982E-05    .36025E-03
  10  Prefactor     7.9956        8.7488        .17080E-07    .24348E-05
  11  Prefactor     .10000E-03    14.085       -.25198E-06** at limit **
  12  Prefactor     153.76        106.70       -.57357E-07    .63779E-05
  13  Prefactor     7.2942        69.555       -.14036E-07    .15082E-04
  14  Prefactor     .10000E-03    2.6916       -.10434E-06** at limit **
  15  Prefactor     .10000E-03    7.4889        .27668E-05** at limit **
  16  norm          .10000E-03    3.4698        .10178E-05** at limit **
  17  Prefactor     .10017E-03    8.5970        .22098E-05** at limit **
  18  Prefactor     .10000E-03    18.169        .52924E-06** at limit **
  19  norm          3.6937        4.1645        .17049E-06    .45072E-04
  20  norm          .10001E-03    2.5625        .55373E-06** at limit **
  21  norm          .10000E-03    4.3671       -.10226E-06** at limit **
  22  norm          18.892        27.416        .14187E-06    .34110E-04
  23  norm          17.538        8.8066        .64992E-07   -.98547E-05
  24  Prefactor     .10000E-03    18.624       -.20227E-06** at limit **
  25  norm          .10000E-03    2.9882       -.77123E-07** at limit **
  26  Prefactor     5.7506        15.464        .23145E-06   -.76217E-05
  27  Prefactor     16.487        15.692        .34979E-07   -.12683E-05
  28  Normalizat    .76818        .19850       -.14365E-05   -.12407E-03
  29  Prefactor     1.1025        .19211        .11244E-05   -.15705E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.54862
  Prefactor  = 4.58713
  norm       = 16.51
  Prefactor  = 5.08303
  Prefactor  = 3.75563
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.7962
  Prefactor  = 5.02802
  Prefactor  = 7.99561
  Prefactor  = 0.0001
  Prefactor  = 153.757
  Prefactor  = 7.29415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010017
  Prefactor  = 0.0001
  norm       = 3.69375
  norm       = 0.000100009
  norm       = 0.0001
  norm       = 18.8918
  norm       = 17.538
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.75056
  Prefactor  = 16.4872
  Normalizat = 0.768182
  Prefactor  = 1.10247
 **********
 **   18 **HESSE 
 **********

 FCN=   5273.958     FROM HESSE     STATUS=OK           559 CALLS     4237 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5486        3.8278        .96388E-04   -1.5158    
   2  Prefactor     4.5871        3.1057        .10040E-03   -1.5280    
   3  norm          16.510        7.0800        .98568E-04   -1.4895    
   4  Prefactor     5.0830        4.7649        .12297E-03   -1.5257    
   5  Prefactor     3.7556        2.9612        .10288E-03   -1.5320    
   6  Prefactor     .10000E-03    3.5628        .13349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .37389        .48990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.796        6.3753        .12194E-03   -1.5051    
   9  Prefactor     5.0280        7.8109        .89669E-03   -1.5259    
  10  Prefactor     7.9956        8.7423        .14180E-03   -1.5142    
  11  Prefactor     .10000E-03    14.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     153.76        106.52        .16258E-03   -1.3222    
  13  Prefactor     7.2942        68.493        .14901E-03   -1.5168    
  14  Prefactor     .10000E-03    2.6958        .11635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.5413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.5093        .13201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10017E-03    35.869        .36359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.6937        4.1536        .15009E-03   -1.5324    
  20  norm          .10001E-03    13.515        .21778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.4019        .14803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          18.892        27.373        .92177E-04   -1.4838    
  23  norm          17.538        8.8037        .95638E-04   -1.4870    
  24  Prefactor     .10000E-03    18.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.9941        .12257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.7506        15.436        .16749E-03   -1.5228    
  27  Prefactor     16.487        15.691        .98650E-04   -1.4896    
  28  Normalizat    .76818        .23094        .28708E-03   -1.0126    
  29  Prefactor     1.1025        .22695        .24779E-03   -.89388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82602e-09
Minuit parameter uncertainties:
  1  3.82797
  2  3.10577
  3  7.08032
  4  4.76529
  5  2.96132
  6  5.96306e-07
  7  9.88234e-06
  8  6.37572
  9  7.81245
  10  8.74373
  11  5.39494e-05
  12  106.65
  13  44.7706
  14  2.80858e-06
  15  0.000105542
  16  2.33162e-05
  17  0.00494293
  18  1.97821e-05
  19  4.1539
  20  0.000716244
  21  1.00952e-05
  22  27.3909
  23  8.80438
  24  2.0855e-05
  25  2.02571e-06
  26  15.4463
  27  15.6945
  28  0.231238
  29  0.227148
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.809e-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:  1.102e+00  2.271e-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:  7.682e-01  2.312e-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.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991290/likelihoodResults_526780801_527040001_4FGL_J1254.5+2210_daily_bin1109.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) = 5273.96024197
delta logL = -0.00174490057543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5273.95849707
delta logL = 5.78438630328e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0839       1.0000          .0000       10.000    
     3 'Normalizat'    .76819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1025       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=   5273.958     FROM MIGRAD    STATUS=FAILED        88 CALLS      243 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    319.94        .11648E-02** at limit **
   2  Index         2.0785        8.5592        .50000        .15743E-04
   3  Normalizat    .76818        .62287E-01    .28708E-03   -.31245E-04
   4  Prefactor     1.1025        .63716E-01    .24779E-03   -.27666E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5273.958     FROM SIMPLEX   STATUS=UNCHANGED    191 CALLS      434 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    319.94        .30356E-03** at limit **
   2  Index         2.0785        8.5592        .44206E-05    .15743E-04
   3  Normalizat    .76818        .62287E-01    .11622E-06   -.31245E-04
   4  Prefactor     1.1025        .63716E-01    .60565E-07   -.27666E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5273.958     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      468 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6686        .23296E-03** at limit **
   2  Index         2.0784        5.8714        .50000        .15741E-04
   3  Normalizat    .76818        .21869        .11483E-04   -.30097E-04
   4  Prefactor     1.1025        .22379        .99116E-05   -.26611E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.07838
  Normalizat = 0.768182
  Prefactor  = 1.10247
 **********
 **   18 **HESSE 
 **********

 FCN=   5273.958     FROM HESSE     STATUS=OK            29 CALLS      497 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7438        .46593E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0784        6.0345        .50000       -.62405    
   3  Normalizat    .76818        .21834        .22967E-05   -1.0126    
   4  Prefactor     1.1025        .22346        .19823E-05   -.89388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47963e-10
Minuit parameter uncertainties:
  1  8.71231e-05
  2  4.09109
  3  0.218588
  4  0.223652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991290': 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) = 5273.95849703
delta logL = 4.21978256782e-08

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  8.712e-05  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.078e+00  4.091e+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.102e+00  2.237e-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:  7.682e-01  2.186e-01  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/991290/cmap_HighResolution_526780801_527040001_4FGL_J1254.5+2210_daily_bin1109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-03', job_status='DONE', photon_flux_upper_limit='5.43e-08', time_completed='2021-09-06 09:31:33.922890', job_id='991290', GAL2='1.10', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630945893.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='4.22e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1109' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:31:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 991290: <4FGL_J1254.5+2210_daily_bin1109> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1109> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 09:15:41 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:15:43 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:15:43 2021
Terminated at Mon Sep  6 09:31:34 2021
Results reported at Mon Sep  6 09:31:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1109 193.637 22.1808 526780801 527040001 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 :                                   716.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

