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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1063
RA = 193.637, Dec = 22.1808
tmin = 514857601, tmax = 515116801
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='991220', job_status='RUN', time_executed='2021-09-06 09:18:49.371550', time_epoch_executed='1630945129.37' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1063'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991220

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991220/ft1_4FGL_J1254.5+2210_daily_bin1063.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991220/ft2_4FGL_J1254.5+2210_daily_bin1063.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991220/ft1_4FGL_J1254.5+2210_daily_bin1063.fits outfile=/scratch/kocevski/991220/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1063.fits ra=193.637 dec=22.1808 rad=12.0 tmin=514857601.0 tmax=515116801.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.49
user 3.27
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991220/ft1_filtered_4FGL_J1254.5+2210_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/991220/ft2_4FGL_J1254.5+2210_daily_bin1063.fits sctable="SC_DATA" expcube=/scratch/kocevski/991220/ltcube_514857601_515116801_4FGL_J1254.5+2210_daily_bin1063.fits outfile=/scratch/kocevski/991220/expmap_514857601_515116801_4FGL_J1254.5+2210_daily_bin1063.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/991220/ltcube_514857601_515116801_4FGL_J1254.5+2210_daily_bin1063.fits
.....................!
real 192.11
user 187.32
sys 4.26

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/991220/ft1_filtered_4FGL_J1254.5+2210_daily_bin1063.fits scfile=/scratch/kocevski/991220/ft2_4FGL_J1254.5+2210_daily_bin1063.fits outfile=/scratch/kocevski/991220/cmap_514857601_515116801_4FGL_J1254.5+2210_daily_bin1063.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/991220/ft1_filtered_4FGL_J1254.5+2210_daily_bin1063.fits scfile=/scratch/kocevski/991220/ft2_4FGL_J1254.5+2210_daily_bin1063.fits outfile=/scratch/kocevski/991220/cmap_HighResolution_514857601_515116801_4FGL_J1254.5+2210_daily_bin1063.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/991220/ft1_filtered_4FGL_J1254.5+2210_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/991220/ft2_4FGL_J1254.5+2210_daily_bin1063.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/991220/Model_4FGL_J1254.5+2210_daily_bin1063.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/991220/ft1_filtered_4FGL_J1254.5+2210_daily_bin1063.fits.....................!
real 47.51
user 46.16
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6049       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.8918       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9959       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6295       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .35973       1.0000         .10000E-03   10000.    
     8 'norm      '    7.2980       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12431E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6304       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.889       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4202       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.311       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.7387       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.183       1.0000         .10000E-03   10000.    
    19 'norm      '    7.4890       1.0000         .10000E-03   10000.    
    20 'norm      '    1.7697       1.0000         .10000E-03   10000.    
    21 'norm      '    10.155       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.0964       1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.262       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .17508E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0384       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .73815       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=   5398.316     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     3699 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6048        3.0422       -.53741E-07   -.26820E-04
   2  Prefactor     .10000E-03    1.1056       -.10484E-07** at limit **
   3  norm          9.8919        3.7818        .25578E-07    .60289E-04
   4  Prefactor     1.9958        1.9407        .45419E-08    .13684E-04
   5  Prefactor     2.6296        1.9445        .23092E-07    .13629E-03
   6  Prefactor     .10000E-03    2.2528        .75739E-08** at limit **
   7  norm          .35974        .23586       -.22772E-08    .54862E-03
   8  norm          7.2981        3.9022       -.38413E-06   -.65785E-03
   9  Prefactor     .10002E-03    13.043       -.63218E-05** at limit **
  10  Prefactor     5.6306        6.7630       -.51212E-06    .45658E-03
  11  Prefactor     25.877        26.806        .62235E-06    .32195E-03
  12  Prefactor     7.3998        178.28        .11840E-04    .59890E-04
  13  Prefactor     .10000E-03    26.541        .29959E-05** at limit **
  14  Prefactor     11.311        7.1981        .30460E-07    .87116E-04
  15  Prefactor     .10000E-03    7.8490        .30402E-06** at limit **
  16  norm          .10000E-03    4.2136       -.29131E-07** at limit **
  17  Prefactor     8.7380        13.217       -.11949E-06    .21383E-04
  18  Prefactor     10.186        27.436       -.14785E-05   -.63891E-04
  19  norm          7.4892        3.7360        .16211E-06    .39258E-03
  20  norm          1.7694        4.4891       -.36594E-06    .85291E-04
  21  norm          10.155        9.7110        .21560E-06   -.36220E-04
  22  norm          .10000E-03    9.3475       -.80306E-06** at limit **
  23  norm          1.0966        4.3316       -.18160E-05    .65430E-04
  24  Prefactor     27.261        35.237        .33818E-06    .32638E-04
  25  norm          .10000E-03    2.6297        .16558E-06** at limit **
  26  Prefactor     .10000E-03    27.443        .12305E-04** at limit **
  27  Prefactor     .10000E-03    10.312        .70530E-06** at limit **
  28  Normalizat    1.0383        .17848        .58986E-06    .28675E-03
  29  Prefactor     .73821        .17675       -.37868E-06    .98919E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.60482
  Prefactor  = 0.0001
  norm       = 9.89186
  Prefactor  = 1.99583
  Prefactor  = 2.62955
  Prefactor  = 0.0001
  norm       = 0.359743
  norm       = 7.29812
  Prefactor  = 0.00010002
  Prefactor  = 5.63055
  Prefactor  = 25.8773
  Prefactor  = 7.39983
  Prefactor  = 0.000100003
  Prefactor  = 11.3108
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.73801
  Prefactor  = 10.1861
  norm       = 7.48919
  norm       = 1.76944
  norm       = 10.155
  norm       = 0.0001
  norm       = 1.0966
  Prefactor  = 27.2608
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.03829
  Prefactor  = 0.738208
 **********
 **   18 **HESSE 
 **********

 FCN=   5398.316     FROM HESSE     STATUS=OK           557 CALLS     4256 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6048        3.0389        .91245E-04   -1.5234    
   2  Prefactor     .10000E-03    1.1135        .75375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.8919        3.7823        .82279E-04   -1.5079    
   4  Prefactor     1.9958        1.9460        .94351E-04   -1.5425    
   5  Prefactor     2.6296        1.9369        .84055E-04   -1.5384    
   6  Prefactor     .10000E-03    2.2610        .10765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .35974        .23307        .27305E-04   -1.5588    
   8  norm          7.2981        3.9302        .10340E-03   -1.5168    
   9  Prefactor     .10002E-03    51.363        .37296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.6306        6.8478        .84648E-03   -1.5233    
  11  Prefactor     25.877        26.116        .78731E-04   -1.4690    
  12  Prefactor     7.3998        186.90        .14723E-03   -1.5164    
  13  Prefactor     .10000E-03    26.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.311        7.2020        .11912E-03   -1.5035    
  15  Prefactor     .10000E-03    7.9120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.2552        .29223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.7380        13.222        .13559E-03   -1.5117    
  18  Prefactor     10.186        27.204        .12556E-03   -1.5070    
  19  norm          7.4892        3.7428        .96960E-04   -1.5161    
  20  norm          1.7694        4.4422        .16765E-03   -1.5442    
  21  norm          10.155        9.7135        .12574E-03   -1.5071    
  22  norm          .10000E-03    9.3832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.0966        4.3268        .29249E-03   -1.5499    
  24  Prefactor     27.261        35.270        .76727E-04   -1.4663    
  25  norm          .10000E-03    2.6381        .11637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    30.733        .33177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0383        .20394        .22371E-03   -.91758    
  29  Prefactor     .73821        .20122        .27089E-03   -1.0205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60611e-09
Minuit parameter uncertainties:
  1  3.03897
  2  5.00859e-07
  3  3.78234
  4  1.94608
  5  1.93698
  6  1.15832e-05
  7  0.233066
  8  3.93032
  9  0.00203026
  10  6.84879
  11  26.1275
  12  74.6383
  13  0.000536527
  14  7.20253
  15  2.01548e-05
  16  8.46685e-05
  17  13.2259
  18  27.2373
  19  3.74287
  20  4.44302
  21  9.71505
  22  4.93715e-05
  23  4.32801
  24  35.2974
  25  2.85587e-05
  26  0.000360215
  27  8.59682e-05
  28  0.20409
  29  0.201419
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.131e+01  7.203e+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:  7.382e-01  2.014e-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.038e+00  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.10
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 4.44e-08 +/- 2.82e-08
Energy Flux (Fixed Index): 2.49e-05 +/- 1.59e-05

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) = 5398.30389368
delta logL = 0.0122755899783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5398.29311043
delta logL = 0.0230588341601

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9580       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2107       1.0000          .0000       10.000    
     3 'Normalizat'    1.0312       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74236       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5398.293     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      255 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9680        10.021        .63491E-03    .54993E-04
   2  Index         2.2102        .62807        .54865E-02    .46091E-03
   3  Normalizat    1.0312        .19355        .22437E-03    .50670E-07
   4  Prefactor     .74257        .19878        .27018E-03    .84158E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.96798
  Index      = 2.21021
  Normalizat = 1.03118
  Prefactor  = 0.74257
 **********
 **   18 **HESSE 
 **********

 FCN=   5398.293     FROM HESSE     STATUS=OK            27 CALLS      282 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9680        9.2521        .12698E-03   -1.5076    
   2  Index         2.2102        .57983        .10973E-02   -.59192    
   3  Normalizat    1.0312        .19322        .89746E-05   -.91993    
   4  Prefactor     .74257        .19868        .10807E-04   -1.0188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.31178e-12
Minuit parameter uncertainties:
  1  9.2534
  2  0.581737
  3  0.193347
  4  0.198874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991220': 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) = 5398.29310845
delta logL = 0.0230608232823

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  9.968e+00  9.253e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.210e+00  5.817e-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:  7.426e-01  1.989e-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.031e+00  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.12
Ra Dec: 193.637 22.181
Photon Index (Free Index): 2.21 +/- 0.58
Photon Flux (Free Index): 5.00e-08 +/- 4.04e-08
Energy Flux (Free Index): 2.20e-05 +/- 1.82e-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/991220/cmap_HighResolution_514857601_515116801_4FGL_J1254.5+2210_daily_bin1063.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.44e-08', energy_flux2='2.20e-05', photon_flux_error='2.82e-08', dlogl='2.31e-02', energy_flux='2.49e-05', photon_flux2='5.00e-08', job_status='DONE', time_completed='2021-09-06 09:31:32.856035', photon_index_error2='0.58', photon_index2='2.21', ts='6.10', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='1.82e-05', EG='1.04', time_epoch_completed='1630945892.86', return_code='0', job_id='991220', GAL2='0.74', EG2='1.03', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='4.04e-08', ts2='6.12', photon_index='2.09' WHERE bin_id='1063' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:31:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 991220: <4FGL_J1254.5+2210_daily_bin1063> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1063 193.637 22.1808 514857601 515116801 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 :                                   660.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            957 sec.

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

