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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1383
RA = 193.637, Dec = 22.1808
tmin = 597801601, tmax = 598060801
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='992778', job_status='RUN', time_executed='2021-09-06 09:23:39.676551', time_epoch_executed='1630945419.68' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1383'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992778

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992778/ft1_4FGL_J1254.5+2210_daily_bin1383.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992778/ft2_4FGL_J1254.5+2210_daily_bin1383.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992778/ft1_4FGL_J1254.5+2210_daily_bin1383.fits outfile=/scratch/kocevski/992778/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1383.fits ra=193.637 dec=22.1808 rad=12.0 tmin=597801601.0 tmax=598060801.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.58
user 3.32
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992778/ft1_filtered_4FGL_J1254.5+2210_daily_bin1383.fits" evtable="EVENTS" scfile=/scratch/kocevski/992778/ft2_4FGL_J1254.5+2210_daily_bin1383.fits sctable="SC_DATA" outfile=/scratch/kocevski/992778/ltcube_597801601_598060801_4FGL_J1254.5+2210_daily_bin1383.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/992778/ft2_4FGL_J1254.5+2210_daily_bin1383.fits
.....................!
real 12.02
user 11.64
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992778/ft1_filtered_4FGL_J1254.5+2210_daily_bin1383.fits evtable="EVENTS" scfile=/scratch/kocevski/992778/ft2_4FGL_J1254.5+2210_daily_bin1383.fits sctable="SC_DATA" expcube=/scratch/kocevski/992778/ltcube_597801601_598060801_4FGL_J1254.5+2210_daily_bin1383.fits outfile=/scratch/kocevski/992778/expmap_597801601_598060801_4FGL_J1254.5+2210_daily_bin1383.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/992778/ltcube_597801601_598060801_4FGL_J1254.5+2210_daily_bin1383.fits
.....................!
real 193.05
user 187.74
sys 4.94

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/992778/ft1_filtered_4FGL_J1254.5+2210_daily_bin1383.fits scfile=/scratch/kocevski/992778/ft2_4FGL_J1254.5+2210_daily_bin1383.fits outfile=/scratch/kocevski/992778/cmap_597801601_598060801_4FGL_J1254.5+2210_daily_bin1383.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.54
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.7514       1.0000         .10000E-03   10000.    
     3 'norm      '    12.134       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2780       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .79975       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4960       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.329       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.516       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9112       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12300E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10908E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10841E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1682       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11658E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    4.1785       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .34836E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.1558       1.0000         .10000E-03   10000.    
    20 'norm      '    11.749       1.0000         .10000E-03   10000.    
    21 'norm      '    9.9820       1.0000         .10000E-03   10000.    
    22 'norm      '    6.0001       1.0000         .10000E-03   10000.    
    23 'norm      '    8.5480       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .36156E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .90063E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.867       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1039       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96474       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5957.659     FROM MIGRAD    STATUS=CONVERGED    107 CALLS     2044 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3266        .10771E-05** at limit **
   2  Prefactor     6.7346        3.7101        .42734E-06   -.66620E-04
   3  norm          12.130        1.5323        .57053E-06    .46265E-02
   4  Prefactor     1.2785        2.0598       -.14286E-05   -.30667E-03
   5  Prefactor     .79977        1.8181       -.38043E-05   -.98588E-04
   6  Prefactor     5.5238        3.8650       -.31356E-05   -.11518E-02
   7  norm          .10000E-03    .92926E-01    .34283E-06** at limit **
   8  norm          10.342        2.3779       -.50167E-06    .15150E-02
   9  Prefactor     31.536        4.6148       -.28567E-05   -.63736E-02
  10  Prefactor     6.9094        1.1480        .65130E-06    .14435E-04
  11  Prefactor     .10001E-03    11.268        .89068E-05** at limit **
  12  Prefactor     .10001E-03    21.144       -.56135E-05** at limit **
  13  Prefactor     .10090E-03    41.964        .50875E-04** at limit **
  14  Prefactor     6.1850        2.5102       -.24153E-05    .26717E-02
  15  Prefactor     .10008E-03    2.6550       -.26540E-06** at limit **
  16  norm          4.1854        3.8485       -.23852E-05   -.59470E-04
  17  Prefactor     .10000E-03    6.3120        .36657E-05** at limit **
  18  Prefactor     .10000E-03    6.9845       -.21170E-04** at limit **
  19  norm          1.1551        3.2180        .26290E-05   -.14716E-04
  20  norm          11.737        4.8152       -.51701E-05   -.21986E-02
  21  norm          9.9496        5.4290        .49179E-05    .95370E-03
  22  norm          6.0209        3.2803       -.46629E-05    .42927E-03
  23  norm          8.5244        3.3263       -.45720E-05   -.28015E-02
  24  Prefactor     .11086E-03    41.334        .10638E-04** at limit **
  25  norm          .10000E-03    2.3178       -.31131E-05** at limit **
  26  Prefactor     .10257E-03    9.8148        .71598E-05** at limit **
  27  Prefactor     14.030        22.049        .15190E-04   -.39878E-02
  28  Normalizat    1.1039        .21469        .83271E-05   -.43393E-06
  29  Prefactor     .96462        .21992       -.10471E-04   -.58158E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.73462
  norm       = 12.1303
  Prefactor  = 1.27848
  Prefactor  = 0.799766
  Prefactor  = 5.52385
  norm       = 0.0001
  norm       = 10.3418
  Prefactor  = 31.5357
  Prefactor  = 6.90945
  Prefactor  = 0.000100007
  Prefactor  = 0.00010001
  Prefactor  = 0.000100896
  Prefactor  = 6.18497
  Prefactor  = 0.000100085
  norm       = 4.18537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.15512
  norm       = 11.7366
  norm       = 9.94955
  norm       = 6.02093
  norm       = 8.52439
  Prefactor  = 0.000110861
  norm       = 0.0001
  Prefactor  = 0.000102571
  Prefactor  = 14.0301
  Normalizat = 1.10387
  Prefactor  = 0.964624
 **********
 **   18 **HESSE 
 **********

 FCN=   5957.659     FROM HESSE     STATUS=OK           625 CALLS     2669 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3199        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.7346        3.7328        .38606E-02   -1.5189    
   3  norm          12.130        4.7785        .28749E-02   -1.5011    
   4  Prefactor     1.2785        2.4114        .98219E-02   -1.5482    
   5  Prefactor     .79977        1.8968        .12439E-01   -1.5529    
   6  Prefactor     5.5238        4.6200        .42847E-02   -1.5238    
   7  norm          .10000E-03    .73519E-01    .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.342        5.0071        .31168E-02   -1.5065    
   9  Prefactor     31.536        14.195        .17843E-02   -1.4584    
  10  Prefactor     6.9094        6.9891        .38152E-02   -1.5182    
  11  Prefactor     .10001E-03    12.096        .10310E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    22.857        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10090E-03    70.999        .10354E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.1850        7.1618        .40411E-02   -1.5211    
  15  Prefactor     .10008E-03    6.3413        .10329       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.1854        3.8599        .49291E-02   -1.5299    
  17  Prefactor     .10000E-03    6.3080        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.769        .10663E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.1551        3.2773        .10737E-01   -1.5493    
  20  norm          11.737        7.8904        .29218E-02   -1.5023    
  21  norm          9.9496        13.590        .31707E-02   -1.5077    
  22  norm          6.0209        18.266        .40981E-02   -1.5217    
  23  norm          8.5244        5.9563        .34277E-02   -1.5124    
  24  Prefactor     .11086E-03    106.81        .98084E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.3127        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10257E-03    18.116        .10415       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     14.030        27.315        .26890E-02   -1.4959    
  28  Normalizat    1.1039        .18800        .55703E-01   -.89628    
  29  Prefactor     .96462        .18846        .45825E-01   -.93918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40109e-07
Minuit parameter uncertainties:
  1  4.44302e-07
  2  3.73293
  3  4.77869
  4  2.41161
  5  1.89699
  6  4.62032
  7  2.9388e-08
  8  5.00733
  9  14.1962
  10  6.98997
  11  0.000569629
  12  0.000937724
  13  0.0159701
  14  7.16281
  15  0.00146504
  16  3.86016
  17  2.59368e-05
  18  8.71618e-05
  19  3.27783
  20  7.89114
  21  13.594
  22  18.2829
  23  5.95671
  24  0.0682398
  25  2.46048e-06
  26  0.0136546
  27  27.3397
  28  0.18811
  29  0.188589
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  6.185e+00  7.163e+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:  9.646e-01  1.886e-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.104e+00  1.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.09
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 2.43e-08 +/- 2.81e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.58e-05

TS (Fixed Index): 1.09
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 9.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992778/likelihoodResults_597801601_598060801_4FGL_J1254.5+2210_daily_bin1383.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) = 5957.28324623
delta logL = 0.375351069476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5957.25977872
delta logL = 0.398818577683

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3919       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8763       1.0000          .0000       10.000    
     3 'Normalizat'    1.0644       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98874       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5957.260     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      246 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3904        44.952        .66202E-02    .67419E-03
   2  Index         2.8767        3.0118        .99440E-01    .19768E-03
   3  Normalizat    1.0645        .63097E-01    .39681E-01   -.35913E-04
   4  Prefactor     .98866        .60533E-01    .46126E-01   -.19362E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.39038
  Index      = 2.87669
  Normalizat = 1.0645
  Prefactor  = 0.988655
 **********
 **   18 **HESSE 
 **********

 FCN=   5957.260     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3904        15.040        .95614E-04   -1.5399    
   2  Index         2.8767        2.2446        .51733E-02   -.43859    
   3  Normalizat    1.0645        .22886        .25009E-03   -.90900    
   4  Prefactor     .98866        .23336        .27085E-03   -.93109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58678e-10
Minuit parameter uncertainties:
  1  11.9961
  2  2.34853
  3  0.229071
  4  0.233599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992778': 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) = 5957.25977838
delta logL = 0.398818910742

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  2.390e+00  1.200e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.877e+00  2.349e+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:  9.887e-01  2.336e-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.065e+00  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.90
Ra Dec: 193.637 22.181
Photon Index (Free Index): 2.88 +/- 2.35
Photon Flux (Free Index): 5.35e-08 +/- 5.58e-08
Energy Flux (Free Index): 1.14e-05 +/- 1.31e-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/992778/cmap_HighResolution_597801601_598060801_4FGL_J1254.5+2210_daily_bin1383.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.87e-03', comment='SUCCESS', photon_flux='2.43e-08', energy_flux2='1.14e-05', photon_flux_error='2.81e-08', dlogl='3.99e-01', energy_flux='1.36e-05', photon_flux2='5.35e-08', job_status='DONE', time_completed='2021-09-06 09:35:33.309390', photon_index_error2='2.35', photon_index2='2.88', ts='1.09', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='9.09e-08', energy_flux_error2='1.31e-05', EG='1.10', time_epoch_completed='1630946133.31', return_code='0', job_id='992778', GAL2='0.99', EG2='1.06', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='5.58e-08', ts2='1.90', photon_index='2.09' WHERE bin_id='1383' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:35:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 992778: <4FGL_J1254.5+2210_daily_bin1383> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1383 193.637 22.1808 597801601 598060801 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 :                                   676.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            905 sec.

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

