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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1345
RA = 193.637, Dec = 22.1808
tmin = 587952001, tmax = 588211201
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='992723', job_status='RUN', time_executed='2021-09-06 09:23:02.098576', time_epoch_executed='1630945382.1' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992723

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992723/ft1_4FGL_J1254.5+2210_daily_bin1345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992723/ft2_4FGL_J1254.5+2210_daily_bin1345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992723/ft1_4FGL_J1254.5+2210_daily_bin1345.fits outfile=/scratch/kocevski/992723/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1345.fits ra=193.637 dec=22.1808 rad=12.0 tmin=587952001.0 tmax=588211201.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.43
user 3.21
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992723/ft1_filtered_4FGL_J1254.5+2210_daily_bin1345.fits" evtable="EVENTS" scfile=/scratch/kocevski/992723/ft2_4FGL_J1254.5+2210_daily_bin1345.fits sctable="SC_DATA" outfile=/scratch/kocevski/992723/ltcube_587952001_588211201_4FGL_J1254.5+2210_daily_bin1345.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/992723/ft2_4FGL_J1254.5+2210_daily_bin1345.fits
.....................!
real 12.95
user 12.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992723/ft1_filtered_4FGL_J1254.5+2210_daily_bin1345.fits evtable="EVENTS" scfile=/scratch/kocevski/992723/ft2_4FGL_J1254.5+2210_daily_bin1345.fits sctable="SC_DATA" expcube=/scratch/kocevski/992723/ltcube_587952001_588211201_4FGL_J1254.5+2210_daily_bin1345.fits outfile=/scratch/kocevski/992723/expmap_587952001_588211201_4FGL_J1254.5+2210_daily_bin1345.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/992723/ltcube_587952001_588211201_4FGL_J1254.5+2210_daily_bin1345.fits
.....................!
real 190.86
user 185.18
sys 4.88

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/992723/ft1_filtered_4FGL_J1254.5+2210_daily_bin1345.fits scfile=/scratch/kocevski/992723/ft2_4FGL_J1254.5+2210_daily_bin1345.fits outfile=/scratch/kocevski/992723/cmap_587952001_588211201_4FGL_J1254.5+2210_daily_bin1345.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992723/ft1_filtered_4FGL_J1254.5+2210_daily_bin1345.fits scfile=/scratch/kocevski/992723/ft2_4FGL_J1254.5+2210_daily_bin1345.fits outfile=/scratch/kocevski/992723/cmap_HighResolution_587952001_588211201_4FGL_J1254.5+2210_daily_bin1345.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.63
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0859       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.243       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11482E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3630       1.0000         .10000E-03   10000.    
     7 'norm      '    .14720       1.0000         .10000E-03   10000.    
     8 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.743       1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.018       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .12027E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3883       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10688E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.4512       1.0000         .10000E-03   10000.    
    20 'norm      '    12.506       1.0000         .10000E-03   10000.    
    21 'norm      '    .33973E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.4299       1.0000         .10000E-03   10000.    
    23 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.6949       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.1136       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .92355       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2043       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=   6008.135     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3727 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0861        2.1859        .11534E-06    .24385E-04
   2  Prefactor     .10000E-03    .90307        .89486E-08** at limit **
   3  norm          11.248        4.1254        .33504E-07    .31908E-03
   4  Prefactor     .10000E-03    1.8297       -.38924E-06** at limit **
   5  Prefactor     .10000E-03    1.0232        .95570E-07** at limit **
   6  Prefactor     8.3624        5.2028        .18014E-07    .11574E-04
   7  norm          .14717        .16121        .99344E-08    .68524E-04
   8  norm          .10000E-03    2.3604       -.15857E-07** at limit **
   9  Prefactor     .10000E-03    3.3284        .22436E-07** at limit **
  10  Prefactor     .10000E-03    2.5880       -.30462E-07** at limit **
  11  Prefactor     .10000E-03    6.8390        .16506E-06** at limit **
  12  Prefactor     41.688        57.912        .69640E-05    .74162E-04
  13  Prefactor     31.019        46.634       -.32897E-06    .54778E-05
  14  Prefactor     .10000E-03    9.9858       -.14313E-07** at limit **
  15  Prefactor     .10000E-03    6.3720        .10251E-06** at limit **
  16  norm          .10000E-03    3.7912       -.29120E-05** at limit **
  17  Prefactor     2.3881        15.205        .61930E-05    .10534E-03
  18  Prefactor     .10000E-03    63.752       -.50189E-06** at limit **
  19  norm          3.4514        3.7815        .82100E-08    .87251E-04
  20  norm          12.490        5.2619        .48240E-07    .60960E-03
  21  norm          .10000E-03    5.3288        .30899E-06** at limit **
  22  norm          9.4310        14.316        .43286E-07    .52379E-05
  23  norm          .10000E-03    3.8218        .25956E-07** at limit **
  24  Prefactor     .10000E-03    22.143        .30440E-07** at limit **
  25  norm          8.6971        7.7303        .49680E-06    .83254E-04
  26  Prefactor     .10000E-03    11.157        .14818E-06** at limit **
  27  Prefactor     5.1144        13.765        .14325E-06    .43437E-05
  28  Normalizat    .92348        .18007        .27911E-06    .34700E-03
  29  Prefactor     1.2043        .18595       -.92043E-06    .26581E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.08609
  Prefactor  = 0.0001
  norm       = 11.2478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.36242
  norm       = 0.147173
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.6878
  Prefactor  = 31.0193
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 2.38806
  Prefactor  = 0.0001
  norm       = 3.45137
  norm       = 12.4902
  norm       = 0.0001
  norm       = 9.43097
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.69707
  Prefactor  = 0.0001
  Prefactor  = 5.11437
  Normalizat = 0.923479
  Prefactor  = 1.2043
 **********
 **   18 **HESSE 
 **********

 FCN=   6008.135     FROM HESSE     STATUS=OK           555 CALLS     4282 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0861        2.1290        .15701E-03   -1.5500    
   2  Prefactor     .10000E-03    .90936        .71897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.248        3.8402        .86067E-04   -1.5037    
   4  Prefactor     .10000E-03    3.9941        .19055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8311        .14874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3624        5.1930        .67331E-03   -1.5130    
   7  norm          .14717        .15305        .31132E-03   -1.5631    
   8  norm          .10000E-03    2.3940        .11617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.3318        .13811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5914        .12178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.8424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     41.688        59.503        .62045E-04   -1.4416    
  13  Prefactor     31.019        46.665        .71943E-04   -1.4593    
  14  Prefactor     .10000E-03    10.281        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.3938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.5547        .25549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.3881        16.153        .13251E-02   -1.5399    
  18  Prefactor     .10000E-03    65.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.4514        3.7717        .15089E-03   -1.5336    
  20  norm          12.490        4.8088        .10030E-03   -1.5001    
  21  norm          .10000E-03    13.102        .31788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.4310        14.306        .13050E-03   -1.5094    
  23  norm          .10000E-03    3.8434        .14762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.6971        7.7333        .67969E-03   -1.5118    
  26  Prefactor     .10000E-03    11.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.1144        13.755        .17779E-03   -1.5256    
  28  Normalizat    .92348        .21052        .25814E-03   -.95640    
  29  Prefactor     1.2043        .21787        .24596E-03   -.86199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23033e-10
Minuit parameter uncertainties:
  1  2.12912
  2  2.75713e-07
  3  3.84025
  4  4.33455e-05
  5  1.68229e-05
  6  5.19323
  7  0.153052
  8  5.66405e-08
  9  2.87835e-07
  10  1.22737e-06
  11  8.14705e-06
  12  59.5875
  13  46.72
  14  2.7663e-05
  15  8.88608e-06
  16  0.000239863
  17  12.4264
  18  0.000177579
  19  3.77196
  20  4.80897
  21  6.74819e-05
  22  14.311
  23  4.95286e-06
  24  1.42265e-06
  25  7.73419
  26  8.33839e-06
  27  13.7632
  28  0.210707
  29  0.218033
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.766e-05  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.204e+00  2.180e-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.235e-01  2.107e-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: 6.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992723/likelihoodResults_587952001_588211201_4FGL_J1254.5+2210_daily_bin1345.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) = 6008.13520106
delta logL = -0.000464160293632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6008.1347348
delta logL = 2.10886810237e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13851E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2003       1.0000          .0000       10.000    
     3 'Normalizat'    .92351       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2043       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=   6007.714     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      277 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44741        10.194        .90712E-02    .11282E-03
   2  Index         3.4832        2.7687        .96636E-01    .24988E-04
   3  Normalizat    .87208        .39696E-01    .45201E-01    .28964E-03
   4  Prefactor     1.2302        .42627E-01    .55110E-01   -.29414E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.447407
  Index      = 3.48316
  Normalizat = 0.87208
  Prefactor  = 1.23019
 **********
 **   18 **HESSE 
 **********

 FCN=   6007.714     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      310 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44741        29.107        .58511E-04   -1.5574    
   2  Index         3.4832        6.7353        .56801E-02   -.30823    
   3  Normalizat    .87208        .19196        .26493E-03   -.97448    
   4  Prefactor     1.2302        .20432        .24367E-03   -.85407    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.39831e-09
Minuit parameter uncertainties:
  1  7.2203
  2  6.3537
  3  0.192107
  4  0.204456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992723': 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) = 6007.71368174
delta logL = 0.421055161787

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  4.474e-01  7.220e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  3.483e+00  6.354e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  1.230e+00  2.045e-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:  8.721e-01  1.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.637 22.181

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/992723/cmap_HighResolution_587952001_588211201_4FGL_J1254.5+2210_daily_bin1345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-03', job_status='DONE', photon_flux_upper_limit='6.79e-08', time_completed='2021-09-06 09:36:35.988431', job_id='992723', GAL2='1.23', fit_tolerance='1e-08', EG2='0.87', EG='0.92', time_epoch_completed='1630946195.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='4.21e-01', ts2='0.89', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1345' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:36:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 992723: <4FGL_J1254.5+2210_daily_bin1345> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1345> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:20:25 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:20:26 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:26 2021
Terminated at Mon Sep  6 09:36:36 2021
Results reported at Mon Sep  6 09:36:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1345 193.637 22.1808 587952001 588211201 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 :                                   791.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            971 sec.

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

