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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin780
RA = 193.733, Dec = 11.6495
tmin = 441504001, tmax = 441763201
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='997390', job_status='RUN', time_executed='2021-09-06 09:35:50.324310', time_epoch_executed='1630946150.32' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997390

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997390/ft1_4FGL_J1254.9+1138_daily_bin780.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997390/ft2_4FGL_J1254.9+1138_daily_bin780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997390/ft1_4FGL_J1254.9+1138_daily_bin780.fits outfile=/scratch/kocevski/997390/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin780.fits ra=193.733 dec=11.6495 rad=12.0 tmin=441504001.0 tmax=441763201.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.40
user 3.17
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997390/ft1_filtered_4FGL_J1254.9+1138_daily_bin780.fits" evtable="EVENTS" scfile=/scratch/kocevski/997390/ft2_4FGL_J1254.9+1138_daily_bin780.fits sctable="SC_DATA" outfile=/scratch/kocevski/997390/ltcube_441504001_441763201_4FGL_J1254.9+1138_daily_bin780.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/997390/ft2_4FGL_J1254.9+1138_daily_bin780.fits
.....................!
real 12.06
user 11.72
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997390/ft1_filtered_4FGL_J1254.9+1138_daily_bin780.fits evtable="EVENTS" scfile=/scratch/kocevski/997390/ft2_4FGL_J1254.9+1138_daily_bin780.fits sctable="SC_DATA" expcube=/scratch/kocevski/997390/ltcube_441504001_441763201_4FGL_J1254.9+1138_daily_bin780.fits outfile=/scratch/kocevski/997390/expmap_441504001_441763201_4FGL_J1254.9+1138_daily_bin780.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/997390/ltcube_441504001_441763201_4FGL_J1254.9+1138_daily_bin780.fits
.....................!
real 192.06
user 185.88
sys 5.75

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/997390/ft1_filtered_4FGL_J1254.9+1138_daily_bin780.fits scfile=/scratch/kocevski/997390/ft2_4FGL_J1254.9+1138_daily_bin780.fits outfile=/scratch/kocevski/997390/cmap_441504001_441763201_4FGL_J1254.9+1138_daily_bin780.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.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7599       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.8998       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.283       1.0000         .10000E-03   10000.    
     5 'norm      '    2.5305       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.2317       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10566E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.762       1.0000         .10000E-03   10000.    
    10 'norm      '    4.2663       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.4771       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.6989       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .38028       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.166       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.829       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .60100       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2328       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=   6470.517     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2049 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7587        2.9494       -.42780E-06   -.89749E-03
   2  Prefactor     .10000E-03    12.150       -.60323E-07** at limit **
   3  norm          5.9030        5.2135        .14542E-05    .54057E-04
   4  Prefactor     34.278        24.376        .23948E-05   -.16338E-05
   5  norm          2.2985        254.84       -.36841E-04   -.25659E-04
   6  Prefactor     .10000E-03    66.873        .16005E-04** at limit **
   7  norm          2.2318        .85659       -.57216E-07   -.33858E-05
   8  Prefactor     .10000E-03    6.2997       -.79089E-06** at limit **
   9  Prefactor     22.751        25.331        .12348E-04    .13906E-04
  10  norm          4.2658        1.7390       -.93343E-07   -.10988E-03
  11  Prefactor     9.4315        25.641        .26424E-04   -.50029E-05
  12  Prefactor     .10000E-03    24.523        .18982E-06** at limit **
  13  Prefactor     .10000E-03    2.5374        .69527E-07** at limit **
  14  Prefactor     6.6978        10.059       -.11200E-05   -.90238E-04
  15  Prefactor     .10000E-03    10.712        .22919E-06** at limit **
  16  Prefactor     .27313        7.0134       -.14356E-05    .68857E-03
  17  Prefactor     24.161        31.301        .49259E-05    .10720E-04
  18  Prefactor     33.818        51.660       -.31241E-05    .11436E-04
  19  Normalizat    .60078        .18870       -.30128E-05    .12170E-03
  20  Prefactor     1.2332        .16421       -.38878E-06    .21237E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.75868
  Prefactor  = 0.0001
  norm       = 5.90303
  Prefactor  = 34.2779
  norm       = 2.29848
  Prefactor  = 0.0001
  norm       = 2.23178
  Prefactor  = 0.000100001
  Prefactor  = 22.7506
  norm       = 4.2658
  Prefactor  = 9.43149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.69783
  Prefactor  = 0.0001
  Prefactor  = 0.27313
  Prefactor  = 24.1611
  Prefactor  = 33.8183
  Normalizat = 0.600781
  Prefactor  = 1.23323
 **********
 **   18 **HESSE 
 **********

 FCN=   6470.517     FROM HESSE     STATUS=OK           299 CALLS     2348 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7587        2.9444        .17186E-03   -1.5443    
   2  Prefactor     .10000E-03    12.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.9030        5.0727        .12669E-03   -1.5222    
   4  Prefactor     34.278        24.372        .34220E-03   -1.4536    
   5  norm          2.2985        242.64        .25677E-03   -1.5405    
   6  Prefactor     .10000E-03    66.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2318        .85707        .40428E-04   -1.5409    
   8  Prefactor     .10000E-03    6.3379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.751        25.358        .83957E-04   -1.4754    
  10  norm          4.2658        1.7370        .63867E-04   -1.5295    
  11  Prefactor     9.4315        25.518        .13018E-03   -1.5094    
  12  Prefactor     .10000E-03    24.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.5468        .12512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.6978        10.066        .15503E-03   -1.5190    
  15  Prefactor     .10000E-03    10.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .27313        125.29        .39597E-02   -1.5603    
  17  Prefactor     24.161        31.293        .81485E-04   -1.4724    
  18  Prefactor     33.818        51.689        .68897E-04   -1.4544    
  19  Normalizat    .60078        .21025        .32689E-03   -1.0795    
  20  Prefactor     1.2332        .18503        .21133E-03   -.85315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53762e-08
Minuit parameter uncertainties:
  1  2.94464
  2  1.13546e-05
  3  5.07309
  4  24.3792
  5  47.4295
  6  1.93898e-05
  7  0.857075
  8  0.000188794
  9  25.3695
  10  1.73707
  11  25.5479
  12  2.85653e-05
  13  5.40573e-06
  14  10.0685
  15  4.23908e-05
  16  11.7223
  17  31.3142
  18  51.7571
  19  0.210531
  20  0.185127
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  6.698e+00  1.007e+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:  1.233e+00  1.851e-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:  6.008e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/997390/likelihoodResults_441504001_441763201_4FGL_J1254.9+1138_daily_bin780.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) = 6469.37732776
delta logL = 1.13958923858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6469.3769782
delta logL = 1.13993879969

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5150       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5828       1.0000          .0000       10.000    
     3 'Normalizat'    .63341       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2077       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=   6469.377     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      220 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5390        7.3414        .36574E-02    .22490E-04
   2  Index         1.5837        .35354        .21283       -.84148E-04
   3  Normalizat    .63342        .17846        .71986E-01    .52497E-04
   4  Prefactor     1.2076        .16113        .34452E-01    .31321E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.53904
  Index      = 1.5837
  Normalizat = 0.633416
  Prefactor  = 1.20764
 **********
 **   18 **HESSE 
 **********

 FCN=   6469.377     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5390        9.1439        .14629E-03   -1.5159    
   2  Index         1.5837        .54720        .75859E-02   -.75222    
   3  Normalizat    .63342        .20169        .31865E-03   -1.0658    
   4  Prefactor     1.2076        .18245        .21299E-03   -.86097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.89968e-12
Minuit parameter uncertainties:
  1  9.14557
  2  0.549269
  3  0.201925
  4  0.182549
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997390': 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) = 6469.37697494
delta logL = 1.13994205753

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  7.539e+00  9.146e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  1.584e+00  5.493e-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:  1.208e+00  1.825e-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:  6.334e-01  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.90
Ra Dec: 193.733 11.649
Photon Index (Free Index): 1.58 +/- 0.55
Photon Flux (Free Index): 1.42e-08 +/- 1.69e-08
Energy Flux (Free Index): 3.39e-05 +/- 5.07e-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/997390/cmap_HighResolution_441504001_441763201_4FGL_J1254.9+1138_daily_bin780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.41e-03', comment='SUCCESS', energy_flux2='3.39e-05', dlogl='1.14e+00', photon_flux2='1.42e-08', job_status='DONE', time_completed='2021-09-06 09:45:49.785848', photon_index_error2='0.55', photon_index2='1.58', ts='0.62', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='5.07e-05', EG='0.60', time_epoch_completed='1630946749.79', return_code='0', job_id='997390', GAL2='1.21', EG2='0.63', return_code2='0', photon_flux_error2='1.69e-08', ts2='2.90', photon_index='2.79' WHERE bin_id='780' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:45:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 997390: <4FGL_J1254.9+1138_daily_bin780> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin780> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 09:35:40 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:35:42 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:35:42 2021
Terminated at Mon Sep  6 09:45:50 2021
Results reported at Mon Sep  6 09:45:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin780 193.733 11.6495 441504001 441763201 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 :                                   597.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            610 sec.

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

