/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 143 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7436
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1254.9+1138_daily_bin72
RA = 193.733, Dec = 11.6495
tmin = 257990401, tmax = 258249601
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='993175', job_status='RUN', time_executed='2021-09-06 09:23:36.711259', time_epoch_executed='1630945416.71' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993175

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993175/ft1_4FGL_J1254.9+1138_daily_bin72.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993175/ft2_4FGL_J1254.9+1138_daily_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993175/ft1_4FGL_J1254.9+1138_daily_bin72.fits outfile=/scratch/kocevski/993175/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin72.fits ra=193.733 dec=11.6495 rad=12.0 tmin=257990401.0 tmax=258249601.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.40
user 1.24
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/993175/ft2_4FGL_J1254.9+1138_daily_bin72.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993175/ft2_4FGL_J1254.9+1138_daily_bin72.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/993175/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin72.fits evtable="EVENTS" outfile="/scratch/kocevski/993175/ft1_filtered_4FGL_J1254.9+1138_daily_bin72.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993175/ft1_filtered_4FGL_J1254.9+1138_daily_bin72.fits" evtable="EVENTS" scfile=/scratch/kocevski/993175/ft2_4FGL_J1254.9+1138_daily_bin72.fits sctable="SC_DATA" outfile=/scratch/kocevski/993175/ltcube_257990401_258249601_4FGL_J1254.9+1138_daily_bin72.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/993175/ft2_4FGL_J1254.9+1138_daily_bin72.fits
.....................!
real 12.32
user 11.96
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993175/ft1_filtered_4FGL_J1254.9+1138_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/993175/ft2_4FGL_J1254.9+1138_daily_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/993175/ltcube_257990401_258249601_4FGL_J1254.9+1138_daily_bin72.fits outfile=/scratch/kocevski/993175/expmap_257990401_258249601_4FGL_J1254.9+1138_daily_bin72.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/993175/ltcube_257990401_258249601_4FGL_J1254.9+1138_daily_bin72.fits
.....................!
real 191.77
user 185.89
sys 5.50

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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J1254.9+1138 @ 193.733 11.6495

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/993175/ft1_filtered_4FGL_J1254.9+1138_daily_bin72.fits scfile=/scratch/kocevski/993175/ft2_4FGL_J1254.9+1138_daily_bin72.fits outfile=/scratch/kocevski/993175/cmap_257990401_258249601_4FGL_J1254.9+1138_daily_bin72.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.733 yref=11.6495 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993175/ft1_filtered_4FGL_J1254.9+1138_daily_bin72.fits scfile=/scratch/kocevski/993175/ft2_4FGL_J1254.9+1138_daily_bin72.fits outfile=/scratch/kocevski/993175/cmap_HighResolution_257990401_258249601_4FGL_J1254.9+1138_daily_bin72.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.733 yref=11.6495 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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/993175/ft1_filtered_4FGL_J1254.9+1138_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/993175/ft2_4FGL_J1254.9+1138_daily_bin72.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/993175/Model_4FGL_J1254.9+1138_daily_bin72.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/993175/ft1_filtered_4FGL_J1254.9+1138_daily_bin72.fits.....................!
real 55.18
user 53.90
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/993175/ft1_filtered_4FGL_J1254.9+1138_daily_bin72.fits', '/scratch/kocevski/993175/ft2_4FGL_J1254.9+1138_daily_bin72.fits', expMap='/scratch/kocevski/993175/expmap_257990401_258249601_4FGL_J1254.9+1138_daily_bin72.fits', expCube='/scratch/kocevski/993175/ltcube_257990401_258249601_4FGL_J1254.9+1138_daily_bin72.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/993175/Model_4FGL_J1254.9+1138_daily_bin72.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.9+1138'

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  3.627e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/993175/ft1_filtered_4FGL_J1254.9+1138_daily_bin72.fits
Spacecraft file(s): /scratch/kocevski/993175/ft2_4FGL_J1254.9+1138_daily_bin72.fits
Exposure map: /scratch/kocevski/993175/expmap_257990401_258249601_4FGL_J1254.9+1138_daily_bin72.fits
Exposure cube: /scratch/kocevski/993175/ltcube_257990401_258249601_4FGL_J1254.9+1138_daily_bin72.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/993175/Model_4FGL_J1254.9+1138_daily_bin72.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) = 6477.12302982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10079E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1507       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.496       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.668       1.0000         .10000E-03   10000.    
     7 'norm      '    4.8395       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7681       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3309       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.551       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.411       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7743       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.111       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.215       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0790       1.0000         .10000E-03   10000.    
    18 'Prefactor '    85.529       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2464       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93878       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6477.117     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     2020 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1403       -.34276E-07** at limit **
   2  Prefactor     .10000E-03    10.383       -.42476E-07** at limit **
   3  norm          1.1487        2.8951        .75396E-06   -.19048E-04
   4  Prefactor     14.506        26.926       -.24643E-06   -.72828E-04
   5  norm          .10000E-03    14.609       -.26063E-07** at limit **
   6  Prefactor     40.674        68.447        .70376E-06    .19805E-04
   7  norm          4.8397        .95830        .22658E-08   -.44183E-03
   8  Prefactor     .10000E-03    3.9115       -.62450E-07** at limit **
   9  Prefactor     1.7599        79.951        .22551E-05   -.11464E-04
  10  norm          1.3307        1.3644        .10408E-06   -.46172E-04
  11  Prefactor     .10000E-03    9.0304        .10732E-07** at limit **
  12  Prefactor     34.512        38.604       -.58998E-05   -.34274E-03
  13  Prefactor     10.410        7.9128        .19305E-06   -.26858E-04
  14  Prefactor     3.7791        8.2815        .90612E-05   -.32739E-03
  15  Prefactor     11.106        14.351        .60481E-06    .23705E-03
  16  Prefactor     13.215        10.862        .45120E-06   -.79122E-04
  17  Prefactor     .95879        27.701        .27055E-05   -.22431E-03
  18  Prefactor     85.604        58.561        .64946E-05    .59626E-03
  19  Normalizat    1.2465        .21175       -.31564E-05   -.50538E-04
  20  Prefactor     .93884        .17401        .10289E-05   -.27235E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.14867
  Prefactor  = 14.5062
  norm       = 0.0001
  Prefactor  = 40.6739
  norm       = 4.83971
  Prefactor  = 0.0001
  Prefactor  = 1.75994
  norm       = 1.3307
  Prefactor  = 0.0001
  Prefactor  = 34.5123
  Prefactor  = 10.41
  Prefactor  = 3.77908
  Prefactor  = 11.1063
  Prefactor  = 13.2147
  Prefactor  = 0.958794
  Prefactor  = 85.6043
  Normalizat = 1.24645
  Prefactor  = 0.93884
 **********
 **   18 **HESSE 
 **********

 FCN=   6477.117     FROM HESSE     STATUS=OK           293 CALLS     2313 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1533        .83908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1487        2.8422        .20302E-03   -1.5494    
   4  Prefactor     14.506        26.951        .10520E-03   -1.4946    
   5  norm          .10000E-03    14.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     40.674        68.451        .62857E-04   -1.4432    
   7  norm          4.8397        .95216        .32487E-04   -1.5268    
   8  Prefactor     .10000E-03    3.9143        .15537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7599        80.462        .31497E-03   -1.5443    
  10  norm          1.3307        1.3431        .90587E-04   -1.5477    
  11  Prefactor     .10000E-03    9.0338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     34.512        38.887        .68175E-04   -1.4532    
  13  Prefactor     10.410        7.9150        .12417E-03   -1.5063    
  14  Prefactor     3.7791        8.4357        .10390E-02   -1.5319    
  15  Prefactor     11.106        14.568        .12019E-03   -1.5041    
  16  Prefactor     13.215        10.871        .55092E-03   -1.4981    
  17  Prefactor     .95879        257.40        .80876E-02   -1.5512    
  18  Prefactor     85.604        61.165        .21719E-03   -1.3855    
  19  Normalizat    1.2465        .24968        .27087E-03   -.85179    
  20  Prefactor     .93884        .20626        .26281E-03   -.94797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53594e-09
Minuit parameter uncertainties:
  1  2.37342e-06
  2  3.87735e-07
  3  2.84251
  4  26.9733
  5  4.65737e-06
  6  68.5837
  7  0.952163
  8  1.09238e-06
  9  23.8333
  10  1.34313
  11  6.51303e-06
  12  38.9157
  13  7.91579
  14  8.43839
  15  14.5723
  16  10.8728
  17  31.5559
  18  61.21
  19  0.249919
  20  0.206428
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  3.779e+00  8.438e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.388e-01  2.064e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.246e+00  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.27
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993175/likelihoodResults_257990401_258249601_4FGL_J1254.9+1138_daily_bin72.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) = 6475.09419505
delta logL = 2.02300354752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6474.98937386
delta logL = 2.12782473217

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6474.989     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      220 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5772        5.4682        .39171E-02   -.13880E-02
   2  Index         1.4167        .30976        .17602       -.86337E-04
   3  Normalizat    1.2737        .19948        .60635E-01    .80393E-05
   4  Prefactor     .91160        .17131        .45152E-01    .14547E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.57722
  Index      = 1.41673
  Normalizat = 1.27371
  Prefactor  = 0.911599
 **********
 **   18 **HESSE 
 **********

 FCN=   6474.989     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5772        7.0058        .78341E-03   -1.5195    
   2  Index         1.4167        .45005        .68775E-02   -.79899    
   3  Normalizat    1.2737        .23502        .26818E-03   -.84355    
   4  Prefactor     .91160        .20188        .26559E-03   -.95737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85826e-12
Minuit parameter uncertainties:
  1  7.00666
  2  0.451306
  3  0.235221
  4  0.20205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993175': 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) = 6474.98937042
delta logL = 2.12782818161

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  6.577e+00  7.007e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  1.417e+00  4.513e-01  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.116e-01  2.021e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.274e+00  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.55
Ra Dec: 193.733 11.649
Photon Index (Free Index): 1.42 +/- 0.45
Photon Flux (Free Index): 1.29e-08 +/- 1.22e-08
Energy Flux (Free Index): 5.40e-05 +/- 7.10e-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/993175/cmap_HighResolution_257990401_258249601_4FGL_J1254.9+1138_daily_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.09e-03', comment='SUCCESS', energy_flux2='5.40e-05', dlogl='2.13e+00', photon_flux2='1.29e-08', job_status='DONE', time_completed='2021-09-06 09:33:32.545438', photon_index_error2='0.45', photon_index2='1.42', ts='0.27', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='7.10e-05', EG='1.25', time_epoch_completed='1630946012.55', return_code='0', job_id='993175', GAL2='0.91', EG2='1.27', return_code2='0', photon_flux_error2='1.22e-08', ts2='4.55', photon_index='2.79' WHERE bin_id='72' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:33:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 993175: <4FGL_J1254.9+1138_daily_bin72> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin72> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:21:01 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:21:02 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:21:02 2021
Terminated at Mon Sep  6 09:33:33 2021
Results reported at Mon Sep  6 09:33:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin72 193.733 11.6495 257990401 258249601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.9+1138 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   593.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            752 sec.

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

