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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1399
RA = 193.637, Dec = 22.1808
tmin = 601948801, tmax = 602208001
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='992801', job_status='RUN', time_executed='2021-09-06 09:22:26.625100', time_epoch_executed='1630945346.63' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992801

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992801/ft1_4FGL_J1254.5+2210_daily_bin1399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992801/ft2_4FGL_J1254.5+2210_daily_bin1399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992801/ft1_4FGL_J1254.5+2210_daily_bin1399.fits outfile=/scratch/kocevski/992801/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1399.fits ra=193.637 dec=22.1808 rad=12.0 tmin=601948801.0 tmax=602208001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.82
user 3.57
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992801/ft1_filtered_4FGL_J1254.5+2210_daily_bin1399.fits evtable="EVENTS" scfile=/scratch/kocevski/992801/ft2_4FGL_J1254.5+2210_daily_bin1399.fits sctable="SC_DATA" expcube=/scratch/kocevski/992801/ltcube_601948801_602208001_4FGL_J1254.5+2210_daily_bin1399.fits outfile=/scratch/kocevski/992801/expmap_601948801_602208001_4FGL_J1254.5+2210_daily_bin1399.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/992801/ltcube_601948801_602208001_4FGL_J1254.5+2210_daily_bin1399.fits
.....................!
real 190.18
user 185.22
sys 4.48

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/992801/ft1_filtered_4FGL_J1254.5+2210_daily_bin1399.fits scfile=/scratch/kocevski/992801/ft2_4FGL_J1254.5+2210_daily_bin1399.fits outfile=/scratch/kocevski/992801/cmap_601948801_602208001_4FGL_J1254.5+2210_daily_bin1399.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992801/ft1_filtered_4FGL_J1254.5+2210_daily_bin1399.fits scfile=/scratch/kocevski/992801/ft2_4FGL_J1254.5+2210_daily_bin1399.fits outfile=/scratch/kocevski/992801/cmap_HighResolution_601948801_602208001_4FGL_J1254.5+2210_daily_bin1399.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2209       1.0000         .10000E-03   10000.    
     3 'norm      '    .86106       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5994       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3825       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .65214       1.0000         .10000E-03   10000.    
     7 'norm      '    .15618       1.0000         .10000E-03   10000.    
     8 'norm      '    6.0003       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5914       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9656       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    68.114       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.782       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.9781       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.568       1.0000         .10000E-03   10000.    
    19 'norm      '    1.2374       1.0000         .10000E-03   10000.    
    20 'norm      '    22.617       1.0000         .10000E-03   10000.    
    21 'norm      '    .67000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.2135       1.0000         .10000E-03   10000.    
    23 'norm      '    8.6649       1.0000         .10000E-03   10000.    
    24 'Prefactor '    39.852       1.0000         .10000E-03   10000.    
    25 'norm      '    4.0157       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.997       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0747       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0287       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=   6543.154     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     3711 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7663        .44989E-07** at limit **
   2  Prefactor     2.2196        2.9702        .19462E-06   -.92951E-04
   3  norm          .86098        2.3605        .75554E-06    .13872E-03
   4  Prefactor     7.5994        3.0362       -.14401E-06   -.48584E-04
   5  Prefactor     3.3826        2.1544       -.16483E-06   -.35306E-03
   6  Prefactor     .65409        7.7144        .42274E-05   -.21867E-03
   7  norm          .15618        .16485        .96870E-08   -.77567E-03
   8  norm          5.9987        4.7785       -.66621E-06   -.34266E-03
   9  Prefactor     4.5918        5.9106        .37595E-07    .35680E-05
  10  Prefactor     6.9653        8.9163        .17701E-05   -.25948E-03
  11  Prefactor     .10000E-03    13.876        .10643E-06** at limit **
  12  Prefactor     68.073        85.406       -.55511E-05   -.23563E-03
  13  Prefactor     20.782        21.496        .42323E-07    .96136E-05
  14  Prefactor     .10000E-03    2.6361        .55603E-07** at limit **
  15  Prefactor     .10000E-03    4.8112        .57058E-07** at limit **
  16  norm          .10000E-03    1.6642       -.29814E-06** at limit **
  17  Prefactor     9.9774        11.463        .82430E-07   -.10599E-04
  18  Prefactor     16.560        24.530       -.10423E-05   -.22095E-03
  19  norm          1.2376        2.6268        .44890E-06   -.86542E-04
  20  norm          22.624        7.1193       -.17973E-06   -.11478E-02
  21  norm          .10001E-03    11.102        .12783E-05** at limit **
  22  norm          7.2126        17.129        .39054E-07   -.19088E-04
  23  norm          8.6634        7.8612       -.17155E-06   -.54213E-04
  24  Prefactor     39.848        35.666       -.33574E-06   -.69478E-04
  25  norm          4.0149        10.978        .49299E-06   -.36565E-04
  26  Prefactor     .10000E-03    5.5724        .54153E-07** at limit **
  27  Prefactor     11.996        14.190       -.60886E-08   -.12210E-04
  28  Normalizat    1.0748        .18356        .95017E-06   -.26807E-03
  29  Prefactor     1.0286        .18548       -.15570E-05   -.80239E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.21962
  norm       = 0.860984
  Prefactor  = 7.59944
  Prefactor  = 3.38261
  Prefactor  = 0.65409
  norm       = 0.156177
  norm       = 5.99872
  Prefactor  = 4.59178
  Prefactor  = 6.96532
  Prefactor  = 0.0001
  Prefactor  = 68.073
  Prefactor  = 20.7822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.97739
  Prefactor  = 16.5597
  norm       = 1.23763
  norm       = 22.6245
  norm       = 0.000100012
  norm       = 7.21255
  norm       = 8.66336
  Prefactor  = 39.8485
  norm       = 4.01495
  Prefactor  = 0.0001
  Prefactor  = 11.9957
  Normalizat = 1.07483
  Prefactor  = 1.02857
 **********
 **   18 **HESSE 
 **********

 FCN=   6543.154     FROM HESSE     STATUS=OK           563 CALLS     4274 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8425        .26128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2196        2.9469        .15353E-03   -1.5410    
   3  norm          .86098        2.1138        .18669E-02   -1.5522    
   4  Prefactor     7.5994        3.0036        .80334E-04   -1.5157    
   5  Prefactor     3.3826        2.1412        .89435E-04   -1.5340    
   6  Prefactor     .65409        7.8373        .41057E-03   -1.5546    
   7  norm          .15618        .15193        .32280E-03   -1.5629    
   8  norm          5.9987        4.7364        .14414E-03   -1.5218    
   9  Prefactor     4.5918        5.9069        .18785E-03   -1.5279    
  10  Prefactor     6.9653        8.9059        .76003E-03   -1.5180    
  11  Prefactor     .10000E-03    13.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     68.073        89.084        .48634E-04   -1.4056    
  13  Prefactor     20.782        21.495        .87861E-04   -1.4796    
  14  Prefactor     .10000E-03    2.6429        .12824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.8576        .17323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6626        .10166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.9774        11.476        .12685E-03   -1.5076    
  18  Prefactor     16.560        24.637        .98398E-04   -1.4894    
  19  norm          1.2376        2.5868        .18439E-03   -1.5485    
  20  norm          22.624        5.7344        .84225E-04   -1.4756    
  21  norm          .10001E-03    46.063        .41315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.2126        17.108        .14935E-03   -1.5171    
  23  norm          8.6634        7.7585        .13617E-03   -1.5119    
  24  Prefactor     39.848        35.777        .63494E-04   -1.4445    
  25  norm          4.0149        10.848        .20124E-03   -1.5307    
  26  Prefactor     .10000E-03    5.5813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     11.996        14.194        .11566E-03   -1.5015    
  28  Normalizat    1.0748        .21813        .25424E-03   -.90564    
  29  Prefactor     1.0286        .21975        .27344E-03   -.91783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3664e-09
Minuit parameter uncertainties:
  1  6.57605e-06
  2  2.94709
  3  2.11396
  4  3.00368
  5  2.14127
  6  4.52865
  7  0.151927
  8  4.7367
  9  5.90765
  10  8.90756
  11  2.67375e-06
  12  89.2596
  13  21.5032
  14  9.63507e-07
  15  8.09784e-07
  16  1.08915e-05
  17  11.4784
  18  24.6524
  19  2.58707
  20  5.73452
  21  0.00151081
  22  17.12
  23  7.75935
  24  35.7963
  25  10.8533
  26  1.80372e-06
  27  14.1981
  28  0.218315
  29  0.219939
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  9.635e-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:  1.029e+00  2.199e-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.075e+00  2.183e-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: 4.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992801/likelihoodResults_601948801_602208001_4FGL_J1254.5+2210_daily_bin1399.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) = 6543.15577826
delta logL = -0.00179262850816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6543.15398563
delta logL = -3.21688276017e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0843       1.0000          .0000       10.000    
     3 'Normalizat'    1.0748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0286       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=   6543.154     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10023E-03    57.891        .12836E-02** at limit **
   2  Index         2.0528        6.8219        .50000        .12915E-04
   3  Normalizat    1.0748        .21166E-01    .25423E-03   -.75125E-05
   4  Prefactor     1.0286        .22424E-01    .27344E-03   -.95626E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100229
  Index      = 2.05284
  Normalizat = 1.07483
  Prefactor  = 1.02857
 **********
 **   18 **HESSE 
 **********

 FCN=   6543.154     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10023E-03    259.15        .25672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0528        5.1773        .50000       -.63035    
   3  Normalizat    1.0748        .50468E-01    .10169E-04   -.90564    
   4  Prefactor     1.0286        .53188E-01    .10938E-04   -.91783    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.0042e-08
Minuit parameter uncertainties:
  1  0.0154861
  2  938.655
  3  0.0504706
  4  0.0531906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992801': 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) = 6543.15398555
delta logL = 8.11751306173e-08

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.002e-04  1.549e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.053e+00  9.387e+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:  1.029e+00  5.319e-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.075e+00  5.047e-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/992801/cmap_HighResolution_601948801_602208001_4FGL_J1254.5+2210_daily_bin1399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.75e-03', job_status='DONE', photon_flux_upper_limit='4.97e-08', time_completed='2021-09-06 09:36:51.875251', job_id='992801', GAL2='1.03', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630946211.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='8.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1399' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:36:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 992801: <4FGL_J1254.5+2210_daily_bin1399> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1399> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:20:31 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:20:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 09:20:33 2021
Terminated at Mon Sep  6 09:36:52 2021
Results reported at Mon Sep  6 09:36:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1399 193.637 22.1808 601948801 602208001 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 :                                   835.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

