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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1020
RA = 193.637, Dec = 22.1808
tmin = 503712001, tmax = 503971201
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='991159', job_status='RUN', time_executed='2021-09-06 09:17:57.838433', time_epoch_executed='1630945077.84' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991159

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991159/ft1_4FGL_J1254.5+2210_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991159/ft2_4FGL_J1254.5+2210_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991159/ft1_4FGL_J1254.5+2210_daily_bin1020.fits outfile=/scratch/kocevski/991159/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1020.fits ra=193.637 dec=22.1808 rad=12.0 tmin=503712001.0 tmax=503971201.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.60
user 5.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/991159/ft2_4FGL_J1254.5+2210_daily_bin1020.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/991159/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1020.fits evtable="EVENTS" outfile="/scratch/kocevski/991159/ft1_filtered_4FGL_J1254.5+2210_daily_bin1020.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.49
user 0.35
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991159/ft1_filtered_4FGL_J1254.5+2210_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/991159/ft2_4FGL_J1254.5+2210_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/991159/ltcube_503712001_503971201_4FGL_J1254.5+2210_daily_bin1020.fits outfile=/scratch/kocevski/991159/expmap_503712001_503971201_4FGL_J1254.5+2210_daily_bin1020.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/991159/ltcube_503712001_503971201_4FGL_J1254.5+2210_daily_bin1020.fits
.....................!
real 190.90
user 185.47
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/991159/ft1_filtered_4FGL_J1254.5+2210_daily_bin1020.fits scfile=/scratch/kocevski/991159/ft2_4FGL_J1254.5+2210_daily_bin1020.fits outfile=/scratch/kocevski/991159/cmap_503712001_503971201_4FGL_J1254.5+2210_daily_bin1020.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991159/ft1_filtered_4FGL_J1254.5+2210_daily_bin1020.fits scfile=/scratch/kocevski/991159/ft2_4FGL_J1254.5+2210_daily_bin1020.fits outfile=/scratch/kocevski/991159/cmap_HighResolution_503712001_503971201_4FGL_J1254.5+2210_daily_bin1020.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20864E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1656       1.0000         .10000E-03   10000.    
     3 'norm      '    22.388       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3494       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1634       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0641       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10323E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.524       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.822       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.579       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.7965       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.6816       1.0000         .10000E-03   10000.    
    20 'norm      '    3.0438       1.0000         .10000E-03   10000.    
    21 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    15.209       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.674       1.0000         .10000E-03   10000.    
    26 'Prefactor '    22.939       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0040       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0990       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=   5425.941     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     3678 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7255        .30216E-06** at limit **
   2  Prefactor     5.1725        5.1853        .33377E-06    .99590E-04
   3  norm          22.388        6.1729       -.45818E-08   -.11923E-03
   4  Prefactor     4.3493        2.8116       -.25556E-08   -.70871E-04
   5  Prefactor     1.1627        3.0058       -.28026E-06   -.24930E-03
   6  Prefactor     3.0629        7.4764        .47954E-05   -.72718E-04
   7  norm          .10000E-03    .98458E-01   -.30561E-07** at limit **
   8  norm          .10000E-03    4.8378        .85396E-07** at limit **
   9  Prefactor     11.521        15.182        .24684E-06   -.72265E-05
  10  Prefactor     .10000E-03    4.3319        .21102E-06** at limit **
  11  Prefactor     33.827        39.885       -.13078E-06    .14299E-04
  12  Prefactor     .10000E-03    45.862       -.12386E-05** at limit **
  13  Prefactor     .10000E-03    58.548        .12842E-05** at limit **
  14  Prefactor     13.579        9.7009        .12830E-06   -.31620E-04
  15  Prefactor     .10000E-03    7.4138        .26600E-06** at limit **
  16  norm          3.7964        3.3874        .64828E-07    .97996E-04
  17  Prefactor     .10000E-03    4.4209       -.27575E-06** at limit **
  18  Prefactor     .10000E-03    7.2885       -.22676E-06** at limit **
  19  norm          7.6811        5.0676        .72409E-07   -.52099E-04
  20  norm          3.0449        3.5083        .38418E-06    .41839E-03
  21  norm          .10000E-03    5.2406       -.26137E-06** at limit **
  22  norm          .10000E-03    33.011        .10775E-06** at limit **
  23  norm          15.208        11.695        .13985E-06   -.30764E-04
  24  Prefactor     .10000E-03    15.977        .31602E-06** at limit **
  25  norm          13.674        13.280        .18185E-06   -.79879E-05
  26  Prefactor     22.937        23.282        .39966E-06    .13232E-04
  27  Prefactor     .10000E-03    13.843       -.20487E-06** at limit **
  28  Normalizat    1.0038        .21657       -.10005E-05   -.14768E-03
  29  Prefactor     1.0992        .20705       -.68414E-06   -.18710E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 5.17247
  norm       = 22.3875
  Prefactor  = 4.34931
  Prefactor  = 1.16271
  Prefactor  = 3.06288
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.5207
  Prefactor  = 0.0001
  Prefactor  = 33.8269
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 13.5786
  Prefactor  = 0.0001
  norm       = 3.79637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.6811
  norm       = 3.04487
  norm       = 0.0001
  norm       = 0.0001
  norm       = 15.2078
  Prefactor  = 0.0001
  norm       = 13.6737
  Prefactor  = 22.9373
  Prefactor  = 0.0001
  Normalizat = 1.00384
  Prefactor  = 1.09919
 **********
 **   18 **HESSE 
 **********

 FCN=   5425.941     FROM HESSE     STATUS=OK           557 CALLS     4235 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.384        .20615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.1725        4.6176        .14113E-03   -1.5253    
   3  norm          22.388        6.1344        .84654E-04   -1.4761    
   4  Prefactor     4.3493        2.8117        .93362E-04   -1.5291    
   5  Prefactor     1.1627        2.9525        .18462E-03   -1.5492    
   6  Prefactor     3.0629        7.4895        .11587E-02   -1.5358    
   7  norm          .10000E-03    .11527        .44783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.9502        .15830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.521        15.168        .11801E-03   -1.5029    
  10  Prefactor     .10000E-03    4.3411        .14975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     33.827        39.850        .68904E-04   -1.4544    
  12  Prefactor     .10000E-03    46.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    58.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.579        9.6997        .10870E-03   -1.4971    
  15  Prefactor     .10000E-03    7.4395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7964        3.3838        .12460E-03   -1.5318    
  17  Prefactor     .10000E-03    4.4282        .15131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.2932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.6811        5.0655        .12884E-03   -1.5154    
  20  norm          3.0449        3.5022        .14304E-03   -1.5359    
  21  norm          .10000E-03    5.2648        .16413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    33.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          15.208        11.673        .10270E-03   -1.4928    
  24  Prefactor     .10000E-03    15.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.674        13.265        .10832E-03   -1.4968    
  26  Prefactor     22.937        23.340        .83632E-04   -1.4750    
  27  Prefactor     .10000E-03    13.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0038        .25420        .27778E-03   -.92902    
  29  Prefactor     1.0992        .24473        .26896E-03   -.89492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02272e-10
Minuit parameter uncertainties:
  1  0.000242413
  2  4.61792
  3  6.13453
  4  2.81174
  5  2.9529
  6  7.49181
  7  9.05457e-07
  8  7.35235e-05
  9  15.1729
  10  2.26481e-05
  11  39.8818
  12  0.000444757
  13  0.000478872
  14  9.70078
  15  2.46628e-05
  16  3.38398
  17  3.03882e-05
  18  2.64542e-05
  19  5.06579
  20  3.50243
  21  7.72679e-06
  22  9.47278e-05
  23  11.6752
  24  5.79637e-05
  25  13.2682
  26  23.3495
  27  1.76076e-05
  28  0.254512
  29  0.244983
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.358e+01  9.701e+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

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  1.099e+00  2.450e-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.004e+00  2.545e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.18
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 5.32e-08 +/- 3.80e-08
Energy Flux (Fixed Index): 2.99e-05 +/- 2.14e-05

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

Saving results to:
/scratch/kocevski/991159/likelihoodResults_503712001_503971201_4FGL_J1254.5+2210_daily_bin1020.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) = 5425.91121601
delta logL = 0.0293830499286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5425.91081832
delta logL = 0.0297807386823

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.639       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2103       1.0000          .0000       10.000    
     3 'Normalizat'    .99752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1038       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=   5425.911     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      279 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.643        12.520        .11742E-03   -.15424E-02
   2  Index         2.2106        .54375        .50058E-02   -.52799E-03
   3  Normalizat    .99746        .24088        .27856E-03    .71375E-03
   4  Prefactor     1.1037        .24344        .26848E-03    .10397E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6428
  Index      = 2.21062
  Normalizat = 0.997465
  Prefactor  = 1.10371
 **********
 **   18 **HESSE 
 **********

 FCN=   5425.911     FROM HESSE     STATUS=OK            23 CALLS      302 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.643        11.774        .23485E-04   -1.5025    
   2  Index         2.2106        .51128        .20023E-03   -.59183    
   3  Normalizat    .99746        .24085        .55711E-04   -.93115    
   4  Prefactor     1.1037        .24341        .53695E-04   -.89348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42423e-09
Minuit parameter uncertainties:
  1  11.7764
  2  0.512582
  3  0.241109
  4  0.243658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991159': 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) = 5425.91081713
delta logL = 0.0297819252555

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.164e+01  1.178e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.211e+00  5.126e-01  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.104e+00  2.437e-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:  9.975e-01  2.411e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.22
Ra Dec: 193.637 22.181
Photon Index (Free Index): 2.21 +/- 0.51
Photon Flux (Free Index): 5.84e-08 +/- 4.56e-08
Energy Flux (Free Index): 2.57e-05 +/- 2.37e-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/991159/cmap_HighResolution_503712001_503971201_4FGL_J1254.5+2210_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', photon_flux='5.32e-08', energy_flux2='2.57e-05', photon_flux_error='3.80e-08', dlogl='2.98e-02', energy_flux='2.99e-05', photon_flux2='5.84e-08', job_status='DONE', time_completed='2021-09-06 09:32:01.698851', photon_index_error2='0.51', photon_index2='2.21', ts='3.18', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='2.37e-05', EG='1.00', time_epoch_completed='1630945921.7', return_code='0', job_id='991159', GAL2='1.10', EG2='1.00', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='4.56e-08', ts2='3.22', photon_index='2.09' WHERE bin_id='1020' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:32:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 991159: <4FGL_J1254.5+2210_daily_bin1020> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1020 193.637 22.1808 503712001 503971201 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 :                                   738.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

