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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1520
RA = 193.733, Dec = 11.6495
tmin = 633312001, tmax = 633571201
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='760', job_status='RUN', time_executed='2021-09-06 09:48:38.514611', time_epoch_executed='1630946918.51' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1520'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/760

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/760/ft1_4FGL_J1254.9+1138_daily_bin1520.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/760/ft2_4FGL_J1254.9+1138_daily_bin1520.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/760/ft1_4FGL_J1254.9+1138_daily_bin1520.fits outfile=/scratch/kocevski/760/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1520.fits ra=193.733 dec=11.6495 rad=12.0 tmin=633312001.0 tmax=633571201.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.96
user 3.44
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/760/ft1_filtered_4FGL_J1254.9+1138_daily_bin1520.fits" evtable="EVENTS" scfile=/scratch/kocevski/760/ft2_4FGL_J1254.9+1138_daily_bin1520.fits sctable="SC_DATA" outfile=/scratch/kocevski/760/ltcube_633312001_633571201_4FGL_J1254.9+1138_daily_bin1520.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/760/ft2_4FGL_J1254.9+1138_daily_bin1520.fits
.....................!
real 12.40
user 11.99
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/760/ft1_filtered_4FGL_J1254.9+1138_daily_bin1520.fits evtable="EVENTS" scfile=/scratch/kocevski/760/ft2_4FGL_J1254.9+1138_daily_bin1520.fits sctable="SC_DATA" expcube=/scratch/kocevski/760/ltcube_633312001_633571201_4FGL_J1254.9+1138_daily_bin1520.fits outfile=/scratch/kocevski/760/expmap_633312001_633571201_4FGL_J1254.9+1138_daily_bin1520.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/760/ltcube_633312001_633571201_4FGL_J1254.9+1138_daily_bin1520.fits
.....................!
real 191.49
user 185.76
sys 5.07

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/760/ft1_filtered_4FGL_J1254.9+1138_daily_bin1520.fits scfile=/scratch/kocevski/760/ft2_4FGL_J1254.9+1138_daily_bin1520.fits outfile=/scratch/kocevski/760/cmap_633312001_633571201_4FGL_J1254.9+1138_daily_bin1520.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.70
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/760/ft1_filtered_4FGL_J1254.9+1138_daily_bin1520.fits scfile=/scratch/kocevski/760/ft2_4FGL_J1254.9+1138_daily_bin1520.fits outfile=/scratch/kocevski/760/cmap_HighResolution_633312001_633571201_4FGL_J1254.9+1138_daily_bin1520.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.73
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10132E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .15344E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.181       1.0000         .10000E-03   10000.    
     5 'norm      '    92.995       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.4037       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6883       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1696       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.437       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.045       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3142       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7441       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10256E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7364       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1577       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88162       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=   6702.927     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     2049 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0615       -.11498E-06** at limit **
   2  Prefactor     .10000E-03    12.200       -.13618E-07** at limit **
   3  norm          .10000E-03    4.8076        .35679E-05** at limit **
   4  Prefactor     10.191        19.368       -.28603E-06   -.54804E-04
   5  norm          93.041        49.001       -.22591E-05   -.62070E-03
   6  Prefactor     .10000E-03    46.151        .36003E-06** at limit **
   7  norm          4.4048        1.0159        .16169E-07   -.53088E-02
   8  Prefactor     6.6883        10.584        .33577E-06    .98077E-04
   9  Prefactor     .10000E-03    30.914       -.13482E-05** at limit **
  10  norm          2.1700        1.7671       -.69473E-08   -.76896E-03
  11  Prefactor     20.427        36.160        .77943E-06   -.15468E-04
  12  Prefactor     23.052        39.933       -.65307E-06   -.46965E-05
  13  Prefactor     .10000E-03    3.5231       -.71579E-07** at limit **
  14  Prefactor     9.3126        12.989        .29044E-07    .63001E-04
  15  Prefactor     3.7443        12.305        .22324E-05    .31673E-03
  16  Prefactor     .10002E-03    5.4383        .87049E-06** at limit **
  17  Prefactor     9.7442        35.519       -.90182E-06    .25066E-05
  18  Prefactor     .10000E-03    27.814        .87201E-06** at limit **
  19  Normalizat    1.1577        .19513       -.57020E-08   -.12242E-03
  20  Prefactor     .88158        .16268        .24598E-06   -.10971E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 10.1906
  norm       = 93.0408
  Prefactor  = 0.0001
  norm       = 4.40481
  Prefactor  = 6.68833
  Prefactor  = 0.0001
  norm       = 2.16999
  Prefactor  = 20.4272
  Prefactor  = 23.0521
  Prefactor  = 0.0001
  Prefactor  = 9.31265
  Prefactor  = 3.7443
  Prefactor  = 0.00010002
  Prefactor  = 9.74415
  Prefactor  = 0.0001
  Normalizat = 1.15774
  Prefactor  = 0.881583
 **********
 **   18 **HESSE 
 **********

 FCN=   6702.927     FROM HESSE     STATUS=OK           295 CALLS     2344 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1146        .22956E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.8527        .21695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.191        19.371        .12558E-03   -1.5069    
   5  norm          93.041        51.954        .20837E-03   -1.3776    
   6  Prefactor     .10000E-03    46.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.4048        1.0081        .35693E-04   -1.5288    
   8  Prefactor     6.6883        10.573        .15516E-03   -1.5191    
   9  Prefactor     .10000E-03    31.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1700        1.7518        .91327E-04   -1.5413    
  11  Prefactor     20.427        36.182        .88600E-04   -1.4804    
  12  Prefactor     23.052        39.861        .83441E-04   -1.4747    
  13  Prefactor     .10000E-03    3.5596        .15007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.3126        13.004        .13132E-03   -1.5098    
  15  Prefactor     3.7443        12.806        .10433E-02   -1.5321    
  16  Prefactor     .10002E-03    39.245        .35435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.7442        35.526        .12842E-03   -1.5084    
  18  Prefactor     .10000E-03    27.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1577        .23426        .26534E-03   -.87919    
  20  Prefactor     .88158        .19430        .25374E-03   -.96788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84454e-09
Minuit parameter uncertainties:
  1  8.81512e-06
  2  1.42908e-05
  3  0.000304212
  4  19.3827
  5  51.9792
  6  3.83149e-06
  7  1.00806
  8  10.5758
  9  9.13845e-05
  10  1.7518
  11  36.2205
  12  39.9074
  13  7.11994e-06
  14  13.0079
  15  12.8149
  16  0.00176479
  17  35.6035
  18  2.60382e-06
  19  0.23447
  20  0.194452
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  9.313e+00  1.301e+01  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:  8.816e-01  1.945e-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.158e+00  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.81
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/760/likelihoodResults_633312001_633571201_4FGL_J1254.9+1138_daily_bin1520.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) = 6702.31580967
delta logL = 0.611073946004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6702.28899732
delta logL = 0.637886291287

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8649       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4650       1.0000          .0000       10.000    
     3 'Normalizat'    1.1053       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91427       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=   6702.289     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      255 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8511        44.094        .60041E-02    .59643E-03
   2  Index         4.4690        4.1767        .20259        .10765E-03
   3  Normalizat    1.1046        .56537E-01    .61199E-01    .71572E-04
   4  Prefactor     .91485        .47822E-01    .45187E-01    .24242E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.85111
  Index      = 4.46898
  Normalizat = 1.10462
  Prefactor  = 0.914852
 **********
 **   18 **HESSE 
 **********

 FCN=   6702.289     FROM HESSE     STATUS=OK            33 CALLS      288 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8511        12.411        .10404E-03   -1.5370    
   2  Index         4.4690        3.0563        .78033E-02   -.10640    
   3  Normalizat    1.1046        .23389        .27068E-03   -.89604    
   4  Prefactor     .91485        .19507        .24954E-03   -.95624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14079e-10
Minuit parameter uncertainties:
  1  11.9009
  2  3.29153
  3  0.234107
  4  0.195219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/760': 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) = 6702.28898973
delta logL = 0.637893883368

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  2.851e+00  1.190e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  4.469e+00  3.292e+00  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.149e-01  1.952e-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.105e+00  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.27
Ra Dec: 193.733 11.649
Photon Index (Free Index): 4.47 +/- 3.29
Photon Flux (Free Index): 7.53e-08 +/- 6.06e-08
Energy Flux (Free Index): 1.05e-05 +/- 9.54e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/760/cmap_HighResolution_633312001_633571201_4FGL_J1254.9+1138_daily_bin1520.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', energy_flux2='1.05e-05', dlogl='6.38e-01', photon_flux2='7.53e-08', job_status='DONE', time_completed='2021-09-06 09:59:01.397782', photon_index_error2='3.29', photon_index2='4.47', ts='0.81', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='9.54e-06', EG='1.16', time_epoch_completed='1630947541.4', return_code='0', job_id='760', GAL2='0.91', EG2='1.10', return_code2='0', photon_flux_error2='6.06e-08', ts2='2.27', photon_index='2.79' WHERE bin_id='1520' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:59:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 760: <4FGL_J1254.9+1138_daily_bin1520> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin1520> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 09:45:32 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:45:34 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:45:34 2021
Terminated at Mon Sep  6 09:59:02 2021
Results reported at Mon Sep  6 09:59:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1520 193.733 11.6495 633312001 633571201 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 :                                   612.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             291.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            810 sec.

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

