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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin3
RA = 193.637, Dec = 22.1808
tmin = 240105601, tmax = 240364801
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='984965', job_status='RUN', time_executed='2021-09-06 08:55:41.409087', time_epoch_executed='1630943741.41' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984965

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/984965/ft1_4FGL_J1254.5+2210_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/984965/ft2_4FGL_J1254.5+2210_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984965/ft1_4FGL_J1254.5+2210_daily_bin3.fits outfile=/scratch/kocevski/984965/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin3.fits ra=193.637 dec=22.1808 rad=12.0 tmin=240105601.0 tmax=240364801.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.44
user 1.25
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984965/ft1_filtered_4FGL_J1254.5+2210_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/984965/ft2_4FGL_J1254.5+2210_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/984965/ltcube_240105601_240364801_4FGL_J1254.5+2210_daily_bin3.fits outfile=/scratch/kocevski/984965/expmap_240105601_240364801_4FGL_J1254.5+2210_daily_bin3.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/984965/ltcube_240105601_240364801_4FGL_J1254.5+2210_daily_bin3.fits
.....................!
real 192.97
user 187.82
sys 4.74

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/984965/ft1_filtered_4FGL_J1254.5+2210_daily_bin3.fits scfile=/scratch/kocevski/984965/ft2_4FGL_J1254.5+2210_daily_bin3.fits outfile=/scratch/kocevski/984965/cmap_240105601_240364801_4FGL_J1254.5+2210_daily_bin3.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.61
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/984965/ft1_filtered_4FGL_J1254.5+2210_daily_bin3.fits scfile=/scratch/kocevski/984965/ft2_4FGL_J1254.5+2210_daily_bin3.fits outfile=/scratch/kocevski/984965/cmap_HighResolution_240105601_240364801_4FGL_J1254.5+2210_daily_bin3.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3813       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0076       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9492       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.254       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1811       1.0000         .10000E-03   10000.    
     7 'norm      '    .16564       1.0000         .10000E-03   10000.    
     8 'norm      '    5.9011       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.770       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.553       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3147       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .27463E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3986       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.081       1.0000         .10000E-03   10000.    
    19 'norm      '    1.7690       1.0000         .10000E-03   10000.    
    20 'norm      '    15.028       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0360       1.0000         .10000E-03   10000.    
    22 'norm      '    13.432       1.0000         .10000E-03   10000.    
    23 'norm      '    .10308E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.9544       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .78337       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2521       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=   5100.401     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3774 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3812        2.9670        .11125E-06   -.79177E-04
   2  Prefactor     .10000E-03    3.1555       -.19366E-06** at limit **
   3  norm          1.0077        2.7087        .28819E-06   -.13526E-03
   4  Prefactor     2.9492        2.3768        .28437E-08    .60419E-04
   5  Prefactor     12.253        3.6297       -.10916E-06   -.55084E-04
   6  Prefactor     8.1810        6.2243        .10640E-06   -.95704E-05
   7  norm          .16563        .15104       -.91764E-09   -.31873E-04
   8  norm          5.9009        4.6476        .49687E-06   -.87204E-05
   9  Prefactor     30.766        17.378        .45232E-06    .66952E-05
  10  Prefactor     .10000E-03    7.9019       -.15028E-06** at limit **
  11  Prefactor     14.543        33.549       -.24758E-05   -.47981E-05
  12  Prefactor     .10000E-03    48.797        .68222E-06** at limit **
  13  Prefactor     .10000E-03    16.394        .21636E-07** at limit **
  14  Prefactor     1.3126        6.9421        .44060E-06   -.33802E-03
  15  Prefactor     .10000E-03    3.8719        .56228E-07** at limit **
  16  norm          .10000E-03    3.4096        .41180E-06** at limit **
  17  Prefactor     5.3982        7.9806       -.49226E-08   -.41634E-04
  18  Prefactor     12.046        28.113       -.38672E-05   -.73416E-04
  19  norm          1.7689        2.4092        .17143E-07   -.37499E-04
  20  norm          15.036        9.6994       -.86327E-06   -.22737E-03
  21  norm          1.0277        33.455        .33918E-05   -.11078E-03
  22  norm          13.432        19.149       -.94025E-07   -.91044E-05
  23  norm          .10000E-03    7.1441        .13350E-06** at limit **
  24  Prefactor     .10000E-03    34.523       -.76316E-06** at limit **
  25  norm          3.9539        10.107       -.16506E-06   -.85031E-04
  26  Prefactor     .10000E-03    14.684       -.50779E-06** at limit **
  27  Prefactor     .10000E-03    122.95        .50737E-05** at limit **
  28  Normalizat    .78333        .19857        .54020E-06   -.10393E-03
  29  Prefactor     1.2522        .20382       -.48809E-06   -.42582E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.38123
  Prefactor  = 0.0001
  norm       = 1.00769
  Prefactor  = 2.94918
  Prefactor  = 12.2532
  Prefactor  = 8.18101
  norm       = 0.165633
  norm       = 5.9009
  Prefactor  = 30.7661
  Prefactor  = 0.0001
  Prefactor  = 14.5428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.31261
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 5.39824
  Prefactor  = 12.0464
  norm       = 1.76893
  norm       = 15.0363
  norm       = 1.02771
  norm       = 13.432
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.95386
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.783328
  Prefactor  = 1.25221
 **********
 **   18 **HESSE 
 **********

 FCN=   5100.401     FROM HESSE     STATUS=OK           569 CALLS     4343 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3812        2.9450        .13190E-03   -1.5399    
   2  Prefactor     .10000E-03    3.2495        .24677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0077        2.3159        .17884E-02   -1.5507    
   4  Prefactor     2.9492        2.3980        .91955E-04   -1.5364    
   5  Prefactor     12.253        3.6117        .70456E-04   -1.5008    
   6  Prefactor     8.1810        6.2190        .14017E-03   -1.5136    
   7  norm          .16563        .15505        .25584E-03   -1.5627    
   8  norm          5.9009        4.6321        .13015E-03   -1.5222    
   9  Prefactor     30.766        17.345        .72231E-04   -1.4598    
  10  Prefactor     .10000E-03    8.0151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.543        33.442        .10499E-03   -1.4945    
  12  Prefactor     .10000E-03    48.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3126        7.6470        .37655E-03   -1.5479    
  15  Prefactor     .10000E-03    3.8817        .13724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.1818        .25302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3982        7.9782        .17295E-03   -1.5243    
  18  Prefactor     12.046        28.884        .11525E-03   -1.5014    
  19  norm          1.7689        2.3912        .12553E-03   -1.5442    
  20  norm          15.036        17.452        .99322E-04   -1.4932    
  21  norm          1.0277        235.98        .41924E-02   -1.5505    
  22  norm          13.432        19.136        .10929E-03   -1.4975    
  23  norm          .10000E-03    7.2021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    34.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.9539        10.144        .20285E-03   -1.5310    
  26  Prefactor     .10000E-03    14.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    125.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .78333        .23990        .28019E-03   -1.0069    
  29  Prefactor     1.2522        .24712        .24225E-03   -.84740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43295e-07
Minuit parameter uncertainties:
  1  2.94518
  2  4.13551e-07
  3  2.3161
  4  2.3981
  5  3.61173
  6  6.21952
  7  0.155051
  8  4.63238
  9  17.3477
  10  1.32244e-06
  11  33.485
  12  2.10251e-05
  13  1.34879e-06
  14  6.33738
  15  8.36407e-07
  16  0.000271668
  17  7.97982
  18  28.9172
  19  2.39132
  20  17.4575
  21  31.2697
  22  19.1444
  23  7.61074e-06
  24  1.59705e-07
  25  10.1481
  26  6.31472e-06
  27  0.000276365
  28  0.240225
  29  0.247351
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.313e+00  6.337e+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.252e+00  2.474e-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.833e-01  2.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/984965/likelihoodResults_240105601_240364801_4FGL_J1254.5+2210_daily_bin3.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) = 5100.3965875
delta logL = 0.00450773447574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5100.39625275
delta logL = 0.00484248063185

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1737       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2321       1.0000          .0000       10.000    
     3 'Normalizat'    .78245       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2525       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=   5100.396     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      237 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1748        8.8631        .32400E-03   -.92283E-05
   2  Index         2.2344        1.6211        .12059E-01    .15075E-03
   3  Normalizat    .78249        .22358        .28033E-03    .42015E-03
   4  Prefactor     1.2524        .24041        .24224E-03    .51482E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.17481
  Index      = 2.23442
  Normalizat = 0.782486
  Prefactor  = 1.25241
 **********
 **   18 **HESSE 
 **********

 FCN=   5100.396     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1748        7.3447        .12960E-04   -1.5491    
   2  Index         2.2344        1.4844        .24118E-02   -.58610    
   3  Normalizat    .78249        .22374        .56066E-04   -1.0072    
   4  Prefactor     1.2524        .24048        .48447E-04   -.84733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48203e-10
Minuit parameter uncertainties:
  1  5.8757
  2  1.51773
  3  0.224
  4  0.240694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984965': 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) = 5100.39625094
delta logL = 0.00484428922846

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.175e+00  5.876e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.234e+00  1.518e+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.252e+00  2.407e-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.825e-01  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/984965/cmap_HighResolution_240105601_240364801_4FGL_J1254.5+2210_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.50e-03', job_status='DONE', photon_flux_upper_limit='7.28e-08', time_completed='2021-09-06 09:07:37.929091', job_id='984965', GAL2='1.25', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1630944457.93', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='4.84e-03', ts2='0.06', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='3' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:07:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 984965: <4FGL_J1254.5+2210_daily_bin3> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin3 193.637 22.1808 240105601 240364801 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 :                                   713.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            730 sec.

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

