/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 49 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 = 7482
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1254.9+1138_daily_bin210
RA = 193.733, Dec = 11.6495
tmin = 293760001, tmax = 294019201
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='994424', job_status='RUN', time_executed='2021-09-06 09:26:39.689667', time_epoch_executed='1630945599.69' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='210'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994424

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994424/ft1_4FGL_J1254.9+1138_daily_bin210.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994424/ft2_4FGL_J1254.9+1138_daily_bin210.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994424/ft1_4FGL_J1254.9+1138_daily_bin210.fits outfile=/scratch/kocevski/994424/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin210.fits ra=193.733 dec=11.6495 rad=12.0 tmin=293760001.0 tmax=294019201.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.51
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994424/ft1_filtered_4FGL_J1254.9+1138_daily_bin210.fits" evtable="EVENTS" scfile=/scratch/kocevski/994424/ft2_4FGL_J1254.9+1138_daily_bin210.fits sctable="SC_DATA" outfile=/scratch/kocevski/994424/ltcube_293760001_294019201_4FGL_J1254.9+1138_daily_bin210.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/994424/ft2_4FGL_J1254.9+1138_daily_bin210.fits
.....................!
real 13.09
user 12.67
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994424/ft1_filtered_4FGL_J1254.9+1138_daily_bin210.fits evtable="EVENTS" scfile=/scratch/kocevski/994424/ft2_4FGL_J1254.9+1138_daily_bin210.fits sctable="SC_DATA" expcube=/scratch/kocevski/994424/ltcube_293760001_294019201_4FGL_J1254.9+1138_daily_bin210.fits outfile=/scratch/kocevski/994424/expmap_293760001_294019201_4FGL_J1254.9+1138_daily_bin210.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/994424/ltcube_293760001_294019201_4FGL_J1254.9+1138_daily_bin210.fits
.....................!
real 190.60
user 184.71
sys 5.41

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/994424/ft1_filtered_4FGL_J1254.9+1138_daily_bin210.fits scfile=/scratch/kocevski/994424/ft2_4FGL_J1254.9+1138_daily_bin210.fits outfile=/scratch/kocevski/994424/cmap_293760001_294019201_4FGL_J1254.9+1138_daily_bin210.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994424/ft1_filtered_4FGL_J1254.9+1138_daily_bin210.fits scfile=/scratch/kocevski/994424/ft2_4FGL_J1254.9+1138_daily_bin210.fits outfile=/scratch/kocevski/994424/cmap_HighResolution_293760001_294019201_4FGL_J1254.9+1138_daily_bin210.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.54
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/994424/ft1_filtered_4FGL_J1254.9+1138_daily_bin210.fits', '/scratch/kocevski/994424/ft2_4FGL_J1254.9+1138_daily_bin210.fits', expMap='/scratch/kocevski/994424/expmap_293760001_294019201_4FGL_J1254.9+1138_daily_bin210.fits', expCube='/scratch/kocevski/994424/ltcube_293760001_294019201_4FGL_J1254.9+1138_daily_bin210.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/994424/Model_4FGL_J1254.9+1138_daily_bin210.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/994424/ft1_filtered_4FGL_J1254.9+1138_daily_bin210.fits
Spacecraft file(s): /scratch/kocevski/994424/ft2_4FGL_J1254.9+1138_daily_bin210.fits
Exposure map: /scratch/kocevski/994424/expmap_293760001_294019201_4FGL_J1254.9+1138_daily_bin210.fits
Exposure cube: /scratch/kocevski/994424/ltcube_293760001_294019201_4FGL_J1254.9+1138_daily_bin210.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/994424/Model_4FGL_J1254.9+1138_daily_bin210.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) = 10613.559356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3468       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3522       1.0000         .10000E-03   10000.    
    10 'norm      '    .25905       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.315       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .69085       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1554       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.6745       1.0000         .10000E-03   10000.    
    19 'Normalizat'    2.8422       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .47305       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=   10613.46     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     1830 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1198        .49304E-07** at limit **
   2  Prefactor     .10000E-03    22.588       -.22588E-06** at limit **
   3  norm          .10000E-03    2.1945       -.58805E-07** at limit **
   4  Prefactor     .10000E-03    11.515       -.29326E-05** at limit **
   5  norm          .10000E-03    100.50        .34557E-04** at limit **
   6  Prefactor     .10000E-03    72.427       -.12362E-04** at limit **
   7  norm          1.3468        .70819       -.12866E-06   -.13415E-02
   8  Prefactor     .10000E-03    3.4903        .11556E-06** at limit **
   9  Prefactor     3.2646        65.918       -.60132E-04   -.13112E-04
  10  norm          .25926        .82482       -.85926E-06   -.13997E-02
  11  Prefactor     14.316        14.703        .31474E-06    .27067E-04
  12  Prefactor     .10000E-03    8.7352       -.30417E-06** at limit **
  13  Prefactor     .69954        4.7524       -.20081E-05    .31124E-03
  14  Prefactor     3.1551        6.2881        .37515E-05   -.18119E-03
  15  Prefactor     .10000E-03    11.030        .23165E-05** at limit **
  16  Prefactor     .10000E-03    2.5951       -.79195E-08** at limit **
  17  Prefactor     .10000E-03    14.762        .13538E-06** at limit **
  18  Prefactor     6.6691        73.224       -.14548E-04   -.55513E-05
  19  Normalizat    2.8425        .24796        .24084E-05    .29442E-03
  20  Prefactor     .47280        .19410        .14682E-05    .25524E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.34678
  Prefactor  = 0.0001
  Prefactor  = 3.26463
  norm       = 0.259259
  Prefactor  = 14.3156
  Prefactor  = 0.0001
  Prefactor  = 0.699544
  Prefactor  = 3.15511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.66908
  Normalizat = 2.84254
  Prefactor  = 0.472798
 **********
 **   18 **HESSE 
 **********

 FCN=   10613.46     FROM HESSE     STATUS=OK           293 CALLS     2123 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1492        .14644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.2799        .29755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    101.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    72.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3468        .69338        .59602E-04   -1.5476    
   8  Prefactor     .10000E-03    3.4987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2646        67.195        .22104E-03   -1.5347    
  10  norm          .25926        1.0907        .15922E-02   -1.5606    
  11  Prefactor     14.316        14.703        .10586E-03   -1.4951    
  12  Prefactor     .10000E-03    8.7357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .69954        34.223        .42698E-02   -1.5541    
  14  Prefactor     3.1551        6.2407        .22818E-03   -1.5353    
  15  Prefactor     .10000E-03    11.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5982        .16208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.6691        73.402        .15532E-03   -1.5191    
  19  Normalizat    2.8425        .27201        .29693E-03   -.44773    
  20  Prefactor     .47280        .20998        .49759E-03   -1.1324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56017e-09
Minuit parameter uncertainties:
  1  5.03078e-06
  2  3.21361e-05
  3  1.26304e-05
  4  2.00617e-06
  5  0.000774617
  6  1.96612e-05
  7  0.693379
  8  5.03079e-05
  9  29.6596
  10  1.06338
  11  14.7072
  12  3.40714e-06
  13  9.79108
  14  6.24198
  15  4.65428e-05
  16  3.83709e-06
  17  1.6741e-05
  18  44.3193
  19  0.272173
  20  0.210323
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  3.155e+00  6.242e+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:  4.728e-01  2.103e-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:  2.843e+00  2.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 9.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/994424/likelihoodResults_293760001_294019201_4FGL_J1254.9+1138_daily_bin210.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) = 10612.8486078
delta logL = 0.609398977245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10612.8430957
delta logL = 0.614911154753

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6548       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5776       1.0000          .0000       10.000    
     3 'Normalizat'    2.8535       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46418       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=   10612.84     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      215 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6595        4.5157        .52825E-02    .45992E-04
   2  Index         1.5776        .44056        .28980       -.83123E-04
   3  Normalizat    2.8536        .24439        .67076E-01   -.12937E-03
   4  Prefactor     .46401        .19281        .11308        .77084E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.65953
  Index      = 1.57755
  Normalizat = 2.85364
  Prefactor  = 0.464006
 **********
 **   18 **HESSE 
 **********

 FCN=   10612.84     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6595        5.5669        .21130E-03   -1.5325    
   2  Index         1.5776        .86902        .12188E-01   -.75390    
   3  Normalizat    2.8536        .26517        .29650E-03   -.44527    
   4  Prefactor     .46401        .20829        .50165E-03   -1.1366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.00905e-11
Minuit parameter uncertainties:
  1  5.56767
  2  0.877471
  3  0.265319
  4  0.208628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994424': 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) = 10612.8430946
delta logL = 0.614912210111

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  3.660e+00  5.568e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  1.578e+00  8.775e-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:  4.640e-01  2.086e-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:  2.854e+00  2.653e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.61
Ra Dec: 193.733 11.649
Photon Index (Free Index): 1.58 +/- 0.88
Photon Flux (Free Index): 6.90e-09 +/- 1.02e-08
Energy Flux (Free Index): 1.68e-05 +/- 4.10e-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/994424/cmap_HighResolution_293760001_294019201_4FGL_J1254.9+1138_daily_bin210.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.25e-03', comment='SUCCESS', energy_flux2='1.68e-05', dlogl='6.15e-01', photon_flux2='6.90e-09', job_status='DONE', time_completed='2021-09-06 09:40:10.657966', photon_index_error2='0.88', photon_index2='1.58', ts='0.38', fit_tolerance='1e-08', GAL='0.47', photon_index_error='0.00', photon_flux_upper_limit='9.17e-08', energy_flux_error2='4.10e-05', EG='2.84', time_epoch_completed='1630946410.66', return_code='0', job_id='994424', GAL2='0.46', EG2='2.85', return_code2='0', photon_flux_error2='1.02e-08', ts2='1.61', photon_index='2.79' WHERE bin_id='210' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:40:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 994424: <4FGL_J1254.9+1138_daily_bin210> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin210> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:25:29 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:25:31 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:25:31 2021
Terminated at Mon Sep  6 09:40:11 2021
Results reported at Mon Sep  6 09:40:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin210 193.733 11.6495 293760001 294019201 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 :                                   785.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            882 sec.

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

