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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1458
RA = 193.637, Dec = 22.1808
tmin = 617241601, tmax = 617500801
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='992885', job_status='RUN', time_executed='2021-09-06 09:23:11.799788', time_epoch_executed='1630945391.8' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1458'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992885

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992885/ft1_4FGL_J1254.5+2210_daily_bin1458.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992885/ft2_4FGL_J1254.5+2210_daily_bin1458.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992885/ft1_4FGL_J1254.5+2210_daily_bin1458.fits outfile=/scratch/kocevski/992885/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1458.fits ra=193.637 dec=22.1808 rad=12.0 tmin=617241601.0 tmax=617500801.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 2.92
user 2.71
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/992885/ft2_4FGL_J1254.5+2210_daily_bin1458.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/992885/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1458.fits evtable="EVENTS" outfile="/scratch/kocevski/992885/ft1_filtered_4FGL_J1254.5+2210_daily_bin1458.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/992885/ft1_filtered_4FGL_J1254.5+2210_daily_bin1458.fits" evtable="EVENTS" scfile=/scratch/kocevski/992885/ft2_4FGL_J1254.5+2210_daily_bin1458.fits sctable="SC_DATA" outfile=/scratch/kocevski/992885/ltcube_617241601_617500801_4FGL_J1254.5+2210_daily_bin1458.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/992885/ft2_4FGL_J1254.5+2210_daily_bin1458.fits
.....................!
real 12.10
user 11.74
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992885/ft1_filtered_4FGL_J1254.5+2210_daily_bin1458.fits evtable="EVENTS" scfile=/scratch/kocevski/992885/ft2_4FGL_J1254.5+2210_daily_bin1458.fits sctable="SC_DATA" expcube=/scratch/kocevski/992885/ltcube_617241601_617500801_4FGL_J1254.5+2210_daily_bin1458.fits outfile=/scratch/kocevski/992885/expmap_617241601_617500801_4FGL_J1254.5+2210_daily_bin1458.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/992885/ltcube_617241601_617500801_4FGL_J1254.5+2210_daily_bin1458.fits
.....................!
real 190.73
user 185.10
sys 5.22

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/992885/ft1_filtered_4FGL_J1254.5+2210_daily_bin1458.fits scfile=/scratch/kocevski/992885/ft2_4FGL_J1254.5+2210_daily_bin1458.fits outfile=/scratch/kocevski/992885/cmap_617241601_617500801_4FGL_J1254.5+2210_daily_bin1458.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992885/ft1_filtered_4FGL_J1254.5+2210_daily_bin1458.fits scfile=/scratch/kocevski/992885/ft2_4FGL_J1254.5+2210_daily_bin1458.fits outfile=/scratch/kocevski/992885/cmap_HighResolution_617241601_617500801_4FGL_J1254.5+2210_daily_bin1458.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88359E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7032       1.0000         .10000E-03   10000.    
     3 'norm      '    4.9745       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0347       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .71426       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7995       1.0000         .10000E-03   10000.    
     7 'norm      '    .86028E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    3.8187       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7181       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.480       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.6134       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8805       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.695       1.0000         .10000E-03   10000.    
    19 'norm      '    2.0635       1.0000         .10000E-03   10000.    
    20 'norm      '    5.5802       1.0000         .10000E-03   10000.    
    21 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.3492       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.4144       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.9510       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0267       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1341       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=   8272.738     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     3110 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10029E-03    90.969        .12838E-03** at limit **
   2  Prefactor     2.7049        3.0744        .10292E-05    .27834E-03
   3  norm          4.9746        2.5208       -.18371E-06    .98177E-04
   4  Prefactor     1.0348        1.0620       -.66861E-06   -.73935E-04
   5  Prefactor     .71460        1.4434       -.18681E-06    .77255E-04
   6  Prefactor     2.7996        1.4777        .35263E-06   -.11291E-02
   7  norm          .86034E-01    .14565       -.20643E-06   -.11907E-02
   8  norm          3.8191        3.1458        .35033E-05    .73563E-03
   9  Prefactor     6.7197        1.6607        .51247E-05    .76811E-02
  10  Prefactor     .10000E-03    4.3016       -.52987E-06** at limit **
  11  Prefactor     26.479        1.0369       -.46461E-06    .10992E-02
  12  Prefactor     .10033E-03    124.39       -.14962E-03** at limit **
  13  Prefactor     .10001E-03    18.877        .11515E-04** at limit **
  14  Prefactor     9.6139        1.1694        .18927E-05    .37263E-02
  15  Prefactor     3.8808        1.0491       -.34111E-06    .15452E-03
  16  norm          .10000E-03    .77554       -.76408E-06** at limit **
  17  Prefactor     .10000E-03    4.5014        .14754E-05** at limit **
  18  Prefactor     13.693        1.0676        .88327E-06    .16430E-03
  19  norm          2.0632        2.7035       -.10219E-06   -.21180E-03
  20  norm          5.5782        2.9061        .51286E-06    .96785E-04
  21  norm          .10000E-03    3.0353        .66568E-06** at limit **
  22  norm          .10002E-03    21.998       -.24823E-04** at limit **
  23  norm          7.3476        1.2654       -.29594E-05   -.10442E-01
  24  Prefactor     .10000E-03    13.313       -.85424E-06** at limit **
  25  norm          .10000E-03    1.3796       -.23838E-06** at limit **
  26  Prefactor     4.4145        1.0077       -.10211E-06   -.76794E-04
  27  Prefactor     4.9508        1.0070       -.27834E-06   -.30437E-03
  28  Normalizat    1.0266        .17963        .40612E-05    .39313E-04
  29  Prefactor     1.1342        .18716       -.35031E-05    .50725E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100287
  Prefactor  = 2.70486
  norm       = 4.97461
  Prefactor  = 1.03482
  Prefactor  = 0.714598
  Prefactor  = 2.79965
  norm       = 0.0860342
  norm       = 3.81905
  Prefactor  = 6.71968
  Prefactor  = 0.0001
  Prefactor  = 26.4794
  Prefactor  = 0.000100333
  Prefactor  = 0.000100007
  Prefactor  = 9.61386
  Prefactor  = 3.88077
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6932
  norm       = 2.06323
  norm       = 5.57823
  norm       = 0.0001
  norm       = 0.00010002
  norm       = 7.34759
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.41447
  Prefactor  = 4.95082
  Normalizat = 1.02665
  Prefactor  = 1.13423
 **********
 **   18 **HESSE 
 **********

 FCN=   8272.738     FROM HESSE     STATUS=OK           629 CALLS     3739 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10029E-03    1.1372        .57462E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.7049        3.1805        .61940E-02   -1.5379    
   3  norm          4.9746        2.5424        .45078E-02   -1.5262    
   4  Prefactor     1.0348        1.0420        .20061E-01   -1.5505    
   5  Prefactor     .71460        1.5385        .34675E-01   -1.5539    
   6  Prefactor     2.7996        4.6817        .60788E-02   -1.5373    
   7  norm          .86034E-01    .15949        .94444E-02   -1.5649    
   8  norm          3.8191        3.5173        .51636E-02   -1.5317    
   9  Prefactor     6.7197        6.6481        .38702E-02   -1.5189    
  10  Prefactor     .10000E-03    4.2747        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.479        27.295        .19462E-02   -1.4678    
  12  Prefactor     .10033E-03    128.09        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    19.012        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.6139        6.7565        .32312E-02   -1.5088    
  15  Prefactor     3.8808        9.7765        .51209E-02   -1.5314    
  16  norm          .10000E-03    .77541        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.4960        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.693        17.491        .27059E-02   -1.4968    
  19  norm          2.0632        2.7374        .71911E-02   -1.5421    
  20  norm          5.5782        2.9377        .42517E-02   -1.5236    
  21  norm          .10000E-03    3.0128        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10002E-03    21.905        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.3476        4.5919        .36987E-02   -1.5166    
  24  Prefactor     .10000E-03    13.295        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.3771        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.4145        7.8118        .47919E-02   -1.5288    
  27  Prefactor     4.9508        6.7554        .45187E-02   -1.5263    
  28  Normalizat    1.0266        .15781        .42508E-01   -.92143    
  29  Prefactor     1.1342        .15984        .57293E-01   -.88380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23968e-07
Minuit parameter uncertainties:
  1  0.00114322
  2  3.18071
  3  2.54246
  4  1.04204
  5  1.53863
  6  4.68229
  7  0.159488
  8  3.51746
  9  6.64884
  10  4.71278e-07
  11  27.3074
  12  0.013088
  13  0.000736229
  14  6.75706
  15  9.78053
  16  8.32743e-06
  17  4.8449e-05
  18  17.4971
  19  2.73753
  20  2.93774
  21  3.23075e-05
  22  0.00131818
  23  4.59217
  24  1.60992e-07
  25  3.97167e-06
  26  7.81362
  27  6.75641
  28  0.157881
  29  0.159908
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  9.614e+00  6.757e+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.134e+00  1.599e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.027e+00  1.579e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.36
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 3.77e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 1.49e-05

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) = 8272.71860278
delta logL = 0.0193238638985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8272.71378597
delta logL = 0.0241406754812

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.359       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9591       1.0000          .0000       10.000    
     3 'Normalizat'    1.0328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1316       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=   8272.714     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      261 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.358        8.1439        .12449E-03    .19068E-03
   2  Index         1.9589        .61767        .90348E-02    .38651E-04
   3  Normalizat    1.0329        .17886        .25030E-03    .24436E-03
   4  Prefactor     1.1316        .18703        .25363E-03    .25901E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3579
  Index      = 1.95893
  Normalizat = 1.03289
  Prefactor  = 1.13158
 **********
 **   18 **HESSE 
 **********

 FCN=   8272.714     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.358        7.9480        .49797E-05   -1.5064    
   2  Index         1.9589        .60219        .36139E-03   -.65381    
   3  Normalizat    1.0329        .17882        .10012E-04   -.91937    
   4  Prefactor     1.1316        .18715        .50726E-04   -.88464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57661e-11
Minuit parameter uncertainties:
  1  7.94879
  2  0.60453
  3  0.178924
  4  0.187255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992885': 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) = 8272.71378582
delta logL = 0.0241408300062

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.036e+01  7.949e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.959e+00  6.045e-01  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.873e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.033e+00  1.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.39
Ra Dec: 193.637 22.181
Photon Index (Free Index): 1.96 +/- 0.60
Photon Flux (Free Index): 3.16e-08 +/- 3.70e-08
Energy Flux (Free Index): 2.42e-05 +/- 2.38e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/992885/cmap_HighResolution_617241601_617500801_4FGL_J1254.5+2210_daily_bin1458.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.77e-08', energy_flux2='2.42e-05', photon_flux_error='2.65e-08', dlogl='2.41e-02', energy_flux='2.12e-05', photon_flux2='3.16e-08', job_status='DONE', time_completed='2021-09-06 09:36:38.391374', photon_index_error2='0.60', photon_index2='1.96', ts='4.36', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='2.38e-05', EG='1.03', time_epoch_completed='1630946198.39', return_code='0', job_id='992885', GAL2='1.13', EG2='1.03', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='3.70e-08', ts2='4.39', photon_index='2.09' WHERE bin_id='1458' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:36:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 992885: <4FGL_J1254.5+2210_daily_bin1458> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1458 193.637 22.1808 617241601 617500801 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 :                                   774.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            962 sec.

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

