/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 0 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 = 7440
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1254.5+2210_daily_bin174
RA = 193.637, Dec = 22.1808
tmin = 284428801, tmax = 284688001
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='985214', job_status='RUN', time_executed='2021-09-06 08:55:55.797453', time_epoch_executed='1630943755.8' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='174'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985214

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985214/ft1_4FGL_J1254.5+2210_daily_bin174.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985214/ft2_4FGL_J1254.5+2210_daily_bin174.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985214/ft1_4FGL_J1254.5+2210_daily_bin174.fits outfile=/scratch/kocevski/985214/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin174.fits ra=193.637 dec=22.1808 rad=12.0 tmin=284428801.0 tmax=284688001.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.56
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985214/ft1_filtered_4FGL_J1254.5+2210_daily_bin174.fits" evtable="EVENTS" scfile=/scratch/kocevski/985214/ft2_4FGL_J1254.5+2210_daily_bin174.fits sctable="SC_DATA" outfile=/scratch/kocevski/985214/ltcube_284428801_284688001_4FGL_J1254.5+2210_daily_bin174.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/985214/ft2_4FGL_J1254.5+2210_daily_bin174.fits
.....................!
real 12.30
user 11.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985214/ft1_filtered_4FGL_J1254.5+2210_daily_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/985214/ft2_4FGL_J1254.5+2210_daily_bin174.fits sctable="SC_DATA" expcube=/scratch/kocevski/985214/ltcube_284428801_284688001_4FGL_J1254.5+2210_daily_bin174.fits outfile=/scratch/kocevski/985214/expmap_284428801_284688001_4FGL_J1254.5+2210_daily_bin174.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/985214/ltcube_284428801_284688001_4FGL_J1254.5+2210_daily_bin174.fits
.....................!
real 190.74
user 185.82
sys 4.48

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 178 point sources and 0 extended sources

Setting source of interest to:
4FGL J1254.5+2210 @ 193.637 22.1808

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/985214/ft1_filtered_4FGL_J1254.5+2210_daily_bin174.fits scfile=/scratch/kocevski/985214/ft2_4FGL_J1254.5+2210_daily_bin174.fits outfile=/scratch/kocevski/985214/cmap_284428801_284688001_4FGL_J1254.5+2210_daily_bin174.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.60
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985214/ft1_filtered_4FGL_J1254.5+2210_daily_bin174.fits scfile=/scratch/kocevski/985214/ft2_4FGL_J1254.5+2210_daily_bin174.fits outfile=/scratch/kocevski/985214/cmap_HighResolution_284428801_284688001_4FGL_J1254.5+2210_daily_bin174.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=193.637 yref=22.1808 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5014       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3140       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.2729       1.0000         .10000E-03   10000.    
     8 'norm      '    .42960       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.130       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11460E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.305       1.0000         .10000E-03   10000.    
    16 'norm      '    .10733E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.233       1.0000         .10000E-03   10000.    
    18 'Prefactor '    50.893       1.0000         .10000E-03   10000.    
    19 'norm      '    2.6017       1.0000         .10000E-03   10000.    
    20 'norm      '    3.2122       1.0000         .10000E-03   10000.    
    21 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .58684       1.0000         .10000E-03   10000.    
    23 'norm      '    4.0411       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    12.917       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .90734       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3881       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=   6957.070     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3746 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8652       -.16017E-06** at limit **
   2  Prefactor     .10000E-03    1.6561       -.11202E-06** at limit **
   3  norm          1.5014        1.4674        .15342E-06   -.21086E-03
   4  Prefactor     .10000E-03    .52266        .31921E-07** at limit **
   5  Prefactor     4.3138        2.3045       -.80525E-06    .71077E-03
   6  Prefactor     .10000E-03    8.2083       -.82116E-06** at limit **
   7  norm          3.2728        .49805       -.26898E-07    .42576E-03
   8  norm          .44420        2.6226       -.29693E-06   -.99297E-04
   9  Prefactor     13.131        10.851       -.19098E-06    .37102E-04
  10  Prefactor     .10000E-03    2.8441        .76034E-07** at limit **
  11  Prefactor     .10000E-03    26.556       -.18932E-06** at limit **
  12  Prefactor     .10002E-03    89.868       -.52180E-05** at limit **
  13  Prefactor     .10000E-03    38.096        .43562E-06** at limit **
  14  Prefactor     .10000E-03    5.6011        .29386E-06** at limit **
  15  Prefactor     10.305        14.205       -.60714E-06    .44818E-04
  16  norm          .10000E-03    4.4614       -.13435E-05** at limit **
  17  Prefactor     35.234        20.415       -.24665E-06    .16810E-03
  18  Prefactor     50.900        37.387       -.98404E-06   -.47124E-03
  19  norm          2.6023        3.8147       -.61340E-06   -.30631E-04
  20  norm          3.2129        4.7514       -.20376E-05   -.44914E-03
  21  norm          .10000E-03    5.1530       -.31391E-06** at limit **
  22  norm          .55331        300.82       -.52757E-04    .53976E-04
  23  norm          4.0414        6.5646       -.47429E-06   -.34292E-04
  24  Prefactor     .10001E-03    8.8720        .26054E-05** at limit **
  25  norm          12.917        11.228        .41939E-07    .27534E-06
  26  Prefactor     .10000E-03    8.3524       -.92200E-06** at limit **
  27  Prefactor     .10000E-03    10.181       -.12515E-05** at limit **
  28  Normalizat    .90729        .20975        .18197E-05   -.83243E-04
  29  Prefactor     1.3882        .20354        .13465E-05    .18917E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.50143
  Prefactor  = 0.0001
  Prefactor  = 4.31376
  Prefactor  = 0.000100001
  norm       = 3.27284
  norm       = 0.444197
  Prefactor  = 13.131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3054
  norm       = 0.0001
  Prefactor  = 35.2344
  Prefactor  = 50.9001
  norm       = 2.60234
  norm       = 3.21289
  norm       = 0.0001
  norm       = 0.553307
  norm       = 4.04145
  Prefactor  = 0.000100007
  norm       = 12.9173
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Normalizat = 0.907295
  Prefactor  = 1.38819
 **********
 **   18 **HESSE 
 **********

 FCN=   6957.070     FROM HESSE     STATUS=OK           559 CALLS     4305 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9136        .22245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.6815        .10480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5014        1.4870        .97339E-04   -1.5463    
   4  Prefactor     .10000E-03    .52332        .58887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3138        2.3074        .44649E-03   -1.5293    
   6  Prefactor     .10000E-03    8.3545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.2728        .49870        .21479E-04   -1.5346    
   8  norm          .44420        11.750        .25468E-02   -1.5575    
   9  Prefactor     13.131        10.856        .11054E-03   -1.4983    
  10  Prefactor     .10000E-03    2.8476        .13738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    91.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    38.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.6835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.305        14.192        .12482E-03   -1.5066    
  16  norm          .10000E-03    4.5962        .34206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     35.234        20.425        .67514E-04   -1.4520    
  18  Prefactor     50.900        37.745        .56216E-04   -1.4280    
  19  norm          2.6023        3.7856        .18637E-03   -1.5385    
  20  norm          3.2129        4.7213        .20084E-03   -1.5349    
  21  norm          .10000E-03    5.1450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .55331        28.288        .11411       -1.5559    
  23  norm          4.0414        6.5156        .20059E-03   -1.5306    
  24  Prefactor     .10001E-03    9.1103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          12.917        11.198        .11145E-03   -1.4989    
  26  Prefactor     .10000E-03    8.3887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .90729        .24597        .32076E-03   -.96204    
  29  Prefactor     1.3882        .24119        .27204E-03   -.80721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08448e-08
Minuit parameter uncertainties:
  1  1.26846e-05
  2  8.97738e-06
  3  1.48701
  4  1.04301e-06
  5  2.30746
  6  0.000194412
  7  0.498705
  8  4.56971
  9  10.8574
  10  6.43494e-06
  11  7.84368e-05
  12  0.00263238
  13  0.000152396
  14  4.1394e-05
  15  14.1962
  16  7.86766e-05
  17  20.4294
  18  37.7624
  19  3.78594
  20  4.72185
  21  7.08867e-05
  22  7.91572
  23  6.51675
  24  0.00050894
  25  11.1994
  26  0.00015207
  27  0.0002462
  28  0.24628
  29  0.241384
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  4.139e-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.388e+00  2.414e-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.073e-01  2.463e-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.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/985214/likelihoodResults_284428801_284688001_4FGL_J1254.5+2210_daily_bin174.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) = 6957.07044503
delta logL = -0.000837766305267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6957.06960804
delta logL = -7.80115442467e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6957.070     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      253 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10241E-03    .19420        .67762E-01** at limit **
   2  Index         1.9808        8.1556        .50000        .43106E-04
   3  Normalizat    .90730        .10982E-02    .32076E-03   -.44162E-04
   4  Prefactor     1.3882        .11287E-02    .27204E-03   -.40152E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102408
  Index      = 1.98078
  Normalizat = 0.907304
  Prefactor  = 1.38818
 **********
 **   18 **HESSE 
 **********

 FCN=   6957.070     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      284 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10241E-03    22.205        .32794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9808        5.3226        .50000       -.64832    
   3  Normalizat    .90730        .91948E-02    .12830E-04   -.96204    
   4  Prefactor     1.3882        .94504E-02    .54408E-04   -.80722    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.01141e-09
Minuit parameter uncertainties:
  1  0.0146313
  2  106.825
  3  0.00919484
  4  0.00945046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985214': 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) = 6957.06960614
delta logL = 1.11656845547e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  1.388e+00  9.450e-03  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.073e-01  9.195e-03  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/985214/cmap_HighResolution_284428801_284688001_4FGL_J1254.5+2210_daily_bin174.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.33e-08', time_completed='2021-09-06 09:10:31.566037', job_id='985214', GAL2='1.39', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630944631.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.39', dlogl='1.12e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='174' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:10:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 985214: <4FGL_J1254.5+2210_daily_bin174> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin174> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 08:55:45 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:55:47 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:47 2021
Terminated at Mon Sep  6 09:10:32 2021
Results reported at Mon Sep  6 09:10:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin174 193.637 22.1808 284428801 284688001 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 :                                   869.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            887 sec.

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

