/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 217 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 = 7467
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1254.5+2210_daily_bin71
RA = 193.637, Dec = 22.1808
tmin = 257731201, tmax = 257990401
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='985062', job_status='RUN', time_executed='2021-09-06 08:59:23.182188', time_epoch_executed='1630943963.18' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985062

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985062/ft1_4FGL_J1254.5+2210_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985062/ft2_4FGL_J1254.5+2210_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985062/ft1_4FGL_J1254.5+2210_daily_bin71.fits outfile=/scratch/kocevski/985062/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin71.fits ra=193.637 dec=22.1808 rad=12.0 tmin=257731201.0 tmax=257990401.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 1.55
user 1.24
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/985062/ft2_4FGL_J1254.5+2210_daily_bin71.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/985062/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin71.fits evtable="EVENTS" outfile="/scratch/kocevski/985062/ft1_filtered_4FGL_J1254.5+2210_daily_bin71.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.81
user 0.32
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985062/ft1_filtered_4FGL_J1254.5+2210_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/985062/ft2_4FGL_J1254.5+2210_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/985062/ltcube_257731201_257990401_4FGL_J1254.5+2210_daily_bin71.fits outfile=/scratch/kocevski/985062/expmap_257731201_257990401_4FGL_J1254.5+2210_daily_bin71.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/985062/ltcube_257731201_257990401_4FGL_J1254.5+2210_daily_bin71.fits
.....................!
real 199.54
user 194.20
sys 4.95

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/985062/ft1_filtered_4FGL_J1254.5+2210_daily_bin71.fits scfile=/scratch/kocevski/985062/ft2_4FGL_J1254.5+2210_daily_bin71.fits outfile=/scratch/kocevski/985062/cmap_257731201_257990401_4FGL_J1254.5+2210_daily_bin71.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.56
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60664       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3532       1.0000         .10000E-03   10000.    
     3 'norm      '    1.3089       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.747       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .22822       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11873E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.081       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.545       1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.369       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14554E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10401E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.275       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.978       1.0000         .10000E-03   10000.    
    19 'norm      '    6.0299       1.0000         .10000E-03   10000.    
    20 'norm      '    2.6674       1.0000         .10000E-03   10000.    
    21 'norm      '    10.686       1.0000         .10000E-03   10000.    
    22 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.5947       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    23.012       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .78362       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0950       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=   5898.472     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     3153 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60720        2.2403        .13786E-05    .24428E-04
   2  Prefactor     4.3544        2.8073       -.85501E-06   -.45299E-04
   3  norm          1.3098        2.5246        .52378E-08   -.10463E-04
   4  Prefactor     .10000E-03    .78550       -.45133E-06** at limit **
   5  Prefactor     10.748        3.0431       -.75164E-07    .77189E-04
   6  Prefactor     .10000E-03    2.5075        .26190E-06** at limit **
   7  norm          .22826        .15688        .15801E-08    .20516E-04
   8  norm          .10000E-03    2.3308        .14002E-06** at limit **
   9  Prefactor     .10000E-03    5.3093       -.12020E-05** at limit **
  10  Prefactor     14.084        1.0511        .38379E-07    .13391E-02
  11  Prefactor     21.557        3.1741        .20685E-06   -.36726E-02
  12  Prefactor     34.344        4.1200       -.31607E-06   -.24248E-02
  13  Prefactor     .10000E-03    23.516       -.33845E-05** at limit **
  14  Prefactor     .12418        146.24        .41742E-04   -.49921E-04
  15  Prefactor     .10000E-03    4.9371       -.11308E-06** at limit **
  16  norm          .10000E-03    1.3352        .21793E-06** at limit **
  17  Prefactor     22.286        3.4392        .23128E-06    .82247E-02
  18  Prefactor     18.941        27.205       -.28147E-06   -.17514E-02
  19  norm          6.0262        4.0505       -.36301E-06    .42514E-04
  20  norm          2.6801        4.4284        .20453E-06   -.84562E-03
  21  norm          10.675        2.8166       -.18163E-06    .39936E-02
  22  norm          .10001E-03    6.0201       -.12191E-05** at limit **
  23  norm          4.5948        1.0440        .48984E-07   -.19102E-02
  24  Prefactor     .10000E-03    7.7599        .43856E-06** at limit **
  25  norm          23.017        1.4727        .77891E-07    .50123E-02
  26  Prefactor     .10000E-03    14.848        .29761E-05** at limit **
  27  Prefactor     .10000E-03    11.949       -.62424E-06** at limit **
  28  Normalizat    .78317        .20301        .14865E-05    .44173E-04
  29  Prefactor     1.0951        .20813       -.34868E-06    .49127E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.607201
  Prefactor  = 4.35438
  norm       = 1.30982
  Prefactor  = 0.0001
  Prefactor  = 10.7485
  Prefactor  = 0.0001
  norm       = 0.228258
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 14.0837
  Prefactor  = 21.5571
  Prefactor  = 34.3445
  Prefactor  = 0.000100002
  Prefactor  = 0.124184
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.2862
  Prefactor  = 18.9415
  norm       = 6.02622
  norm       = 2.68013
  norm       = 10.6751
  norm       = 0.000100005
  norm       = 4.59483
  Prefactor  = 0.0001
  norm       = 23.017
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Normalizat = 0.783172
  Prefactor  = 1.0951
 **********
 **   18 **HESSE 
 **********

 FCN=   5898.472     FROM HESSE     STATUS=OK           617 CALLS     3770 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60720        2.2916        .11699E-01   -1.5552    
   2  Prefactor     4.3544        2.8562        .48263E-02   -1.5291    
   3  norm          1.3098        2.5682        .96382E-02   -1.5479    
   4  Prefactor     .10000E-03    .78307        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.748        3.0619        .30553E-02   -1.5052    
   6  Prefactor     .10000E-03    2.4931        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .22826        .16039        .55065E-02   -1.5612    
   8  norm          .10000E-03    2.2990        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.885        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.084        8.5033        .26684E-02   -1.4957    
  11  Prefactor     21.557        21.037        .21573E-02   -1.4779    
  12  Prefactor     34.344        47.888        .17089E-02   -1.4535    
  13  Prefactor     .10000E-03    23.516        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .12418        5.4820        .90956E-01   -1.5638    
  15  Prefactor     .10000E-03    4.9210        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3345        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.286        14.176        .21217E-02   -1.4763    
  18  Prefactor     18.941        28.889        .22985E-02   -1.4837    
  19  norm          6.0262        4.0629        .40878E-02   -1.5217    
  20  norm          2.6801        6.8401        .62386E-02   -1.5381    
  21  norm          10.675        10.521        .30641E-02   -1.5054    
  22  norm          .10001E-03    11.018        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.5948        5.7828        .46946E-02   -1.5279    
  24  Prefactor     .10000E-03    7.7511        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          23.017        10.072        .20875E-02   -1.4748    
  26  Prefactor     .10000E-03    14.657        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.867        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .78317        .18133        .43396E-01   -1.0070    
  29  Prefactor     1.0951        .17873        .54898E-01   -.89623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60636e-07
Minuit parameter uncertainties:
  1  2.29195
  2  2.85633
  3  2.56843
  4  1.93509e-07
  5  3.06196
  6  9.68913e-08
  7  0.16039
  8  1.81518e-07
  9  0.000352751
  10  8.50407
  11  21.0439
  12  47.9421
  13  0.000467724
  14  1.64968
  15  4.50884e-08
  16  9.78755e-08
  17  14.1783
  18  28.9099
  19  4.06307
  20  6.84206
  21  10.5228
  22  0.000485129
  23  5.78347
  24  2.6285e-06
  25  10.0729
  26  0.000210291
  27  0.000241288
  28  0.181466
  29  0.17883
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  1.095e+00  1.788e-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:  7.832e-01  1.815e-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: 8.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/985062/likelihoodResults_257731201_257990401_4FGL_J1254.5+2210_daily_bin71.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) = 5897.9842196
delta logL = 0.487628144353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5897.98010779
delta logL = 0.491739962206

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61161E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.2840       1.0000          .0000       10.000    
     3 'Normalizat'    .72198       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1324       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=   5897.980     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      263 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61204E-01    1.1296        .45374E-02   -.28672E-02
   2  Index         4.2848        2.3970        .90697E-01   -.38060E-04
   3  Normalizat    .72183        .35076E-01    .63005E-01    .59456E-03
   4  Prefactor     1.1325        .37136E-01    .54109E-01    .71371E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0612035
  Index      = 4.28482
  Normalizat = 0.721833
  Prefactor  = 1.1325
 **********
 **   18 **HESSE 
 **********

 FCN=   5897.980     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      294 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61204E-01    3.5476        .20851E-03   -1.5659    
   2  Index         4.2848        7.0482        .49605E-02   -.14353    
   3  Normalizat    .72183        .13841        .27872E-03   -1.0304    
   4  Prefactor     1.1325        .14452        .23923E-03   -.88435    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.99722e-10
Minuit parameter uncertainties:
  1  0.931231
  2  5.6999
  3  0.138477
  4  0.144568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985062': 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) = 5897.98010458
delta logL = 0.491743172209

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  6.120e-02  9.312e-01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  4.285e+00  5.700e+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.132e+00  1.446e-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:  7.218e-01  1.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 193.637 22.181
Photon Index (Free Index): 4.28 +/- 5.70
Photon Flux (Free Index): 4.65e-08 +/- 5.14e-08
Energy Flux (Free Index): 6.67e-06 +/- 1.03e-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/985062/cmap_HighResolution_257731201_257990401_4FGL_J1254.5+2210_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.27e-03', comment='SUCCESS', energy_flux2='6.67e-06', dlogl='4.92e-01', photon_flux2='4.65e-08', job_status='DONE', time_completed='2021-09-06 09:11:47.958684', photon_index_error2='5.70', photon_index2='4.28', ts='0.00', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='8.29e-08', energy_flux_error2='1.03e-05', EG='0.78', time_epoch_completed='1630944707.96', return_code='0', job_id='985062', GAL2='1.13', EG2='0.72', return_code2='102', photon_flux_error2='5.14e-08', ts2='1.06', photon_index='2.09' WHERE bin_id='71' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:11:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 985062: <4FGL_J1254.5+2210_daily_bin71> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin71 193.637 22.1808 257731201 257990401 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 :                                   741.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            974 sec.

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

