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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1324
RA = 193.733, Dec = 11.6495
tmin = 582508801, tmax = 582768001
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='999468', job_status='RUN', time_executed='2021-09-06 09:44:37.042208', time_epoch_executed='1630946677.04' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999468

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999468/ft1_4FGL_J1254.9+1138_daily_bin1324.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999468/ft2_4FGL_J1254.9+1138_daily_bin1324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999468/ft1_4FGL_J1254.9+1138_daily_bin1324.fits outfile=/scratch/kocevski/999468/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1324.fits ra=193.733 dec=11.6495 rad=12.0 tmin=582508801.0 tmax=582768001.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.71
user 3.47
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/999468/ft2_4FGL_J1254.9+1138_daily_bin1324.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/999468/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1324.fits evtable="EVENTS" outfile="/scratch/kocevski/999468/ft1_filtered_4FGL_J1254.9+1138_daily_bin1324.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.62
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999468/ft1_filtered_4FGL_J1254.9+1138_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/999468/ft2_4FGL_J1254.9+1138_daily_bin1324.fits sctable="SC_DATA" expcube=/scratch/kocevski/999468/ltcube_582508801_582768001_4FGL_J1254.9+1138_daily_bin1324.fits outfile=/scratch/kocevski/999468/expmap_582508801_582768001_4FGL_J1254.9+1138_daily_bin1324.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/999468/ltcube_582508801_582768001_4FGL_J1254.9+1138_daily_bin1324.fits
.....................!
real 190.90
user 185.74
sys 4.72

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/999468/ft1_filtered_4FGL_J1254.9+1138_daily_bin1324.fits scfile=/scratch/kocevski/999468/ft2_4FGL_J1254.9+1138_daily_bin1324.fits outfile=/scratch/kocevski/999468/cmap_582508801_582768001_4FGL_J1254.9+1138_daily_bin1324.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999468/ft1_filtered_4FGL_J1254.9+1138_daily_bin1324.fits scfile=/scratch/kocevski/999468/ft2_4FGL_J1254.9+1138_daily_bin1324.fits outfile=/scratch/kocevski/999468/cmap_HighResolution_582508801_582768001_4FGL_J1254.9+1138_daily_bin1324.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .97133       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.543       1.0000         .10000E-03   10000.    
     5 'norm      '    46.092       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.470       1.0000         .10000E-03   10000.    
     7 'norm      '    .10203E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .70101       1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.798       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5434       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.693       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.305       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .47687E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.954       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3950       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .63187       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=   6093.875     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2082 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1683        .13107E-07** at limit **
   2  Prefactor     .10000E-03    8.2368       -.56512E-07** at limit **
   3  norm          .97208        3.6548        .17369E-05   -.91894E-04
   4  Prefactor     19.547        20.534       -.74339E-06   -.50259E-04
   5  norm          46.079        40.529       -.11139E-05   -.11501E-04
   6  Prefactor     22.489        72.558        .16941E-05    .11443E-04
   7  norm          .10000E-03    .27555       -.12791E-06** at limit **
   8  Prefactor     .74730        15.377        .35025E-06    .14713E-03
   9  Prefactor     43.721        42.786       -.12650E-05    .72948E-04
  10  norm          2.5434        1.3931       -.19061E-07   -.30419E-04
  11  Prefactor     28.701        29.515       -.70100E-06   -.45817E-04
  12  Prefactor     .10000E-03    15.649       -.20316E-07** at limit **
  13  Prefactor     .10000E-03    4.9034        .67386E-08** at limit **
  14  Prefactor     16.305        11.721        .85731E-07    .18326E-05
  15  Prefactor     .10000E-03    9.3154        .34124E-07** at limit **
  16  Prefactor     .10001E-03    7.5959       -.78430E-07** at limit **
  17  Prefactor     .10000E-03    14.883        .56170E-07** at limit **
  18  Prefactor     18.020        51.639        .35705E-05    .36284E-04
  19  Normalizat    1.3951        .19548       -.59747E-06    .35749E-04
  20  Prefactor     .63161        .15713       -.15052E-06    .20541E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.972078
  Prefactor  = 19.5471
  norm       = 46.0791
  Prefactor  = 22.4886
  norm       = 0.0001
  Prefactor  = 0.747299
  Prefactor  = 43.7215
  norm       = 2.54341
  Prefactor  = 28.7014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3049
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 18.0204
  Normalizat = 1.39514
  Prefactor  = 0.631606
 **********
 **   18 **HESSE 
 **********

 FCN=   6093.875     FROM HESSE     STATUS=OK           295 CALLS     2377 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1811        .82395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.2394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .97208        3.6430        .24333E-03   -1.5511    
   4  Prefactor     19.547        20.632        .90602E-04   -1.4823    
   5  norm          46.079        39.682        .59058E-04   -1.4349    
   6  Prefactor     22.489        72.870        .84500E-04   -1.4759    
   7  norm          .10000E-03    .51709        .76990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .74730        72.685        .46246E-02   -1.5535    
   9  Prefactor     43.721        45.186        .60578E-04   -1.4385    
  10  norm          2.5434        1.3882        .65062E-04   -1.5389    
  11  Prefactor     28.701        29.620        .74793E-04   -1.4636    
  12  Prefactor     .10000E-03    15.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.9289        .16880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.305        11.746        .99187E-04   -1.4900    
  15  Prefactor     .10000E-03    9.3564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    63.229        .41157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.020        52.505        .94524E-04   -1.4859    
  19  Normalizat    1.3951        .23269        .23558E-03   -.80769    
  20  Prefactor     .63161        .18628        .27501E-03   -1.0627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24795e-09
Minuit parameter uncertainties:
  1  1.37656e-06
  2  4.93289e-06
  3  3.6438
  4  20.6399
  5  39.705
  6  73.1607
  7  5.16247e-07
  8  14.7576
  9  45.221
  10  1.38825
  11  29.6351
  12  2.09142e-06
  13  5.00229e-06
  14  11.7479
  15  1.03118e-05
  16  0.00171914
  17  1.21033e-06
  18  52.64
  19  0.232871
  20  0.186467
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.630e+01  1.175e+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:  6.316e-01  1.865e-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.395e+00  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.04
Ra Dec: 193.733 11.649
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 6.43e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.04e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6092.28162342
delta logL = 1.59339017573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6092.26345126
delta logL = 1.61156233292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.497       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7282       1.0000          .0000       10.000    
     3 'Normalizat'    1.4484       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60060       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=   6092.263     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      216 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.497        10.099        .27257E-02    .12564E-02
   2  Index         1.7282        .33871        .17019       -.14458E-03
   3  Normalizat    1.4484        .18953        .52448E-01    .60100E-04
   4  Prefactor     .60060        .15565        .63562E-01   -.13650E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.497
  Index      = 1.72823
  Normalizat = 1.4484
  Prefactor  = 0.600602
 **********
 **   18 **HESSE 
 **********

 FCN=   6092.263     FROM HESSE     STATUS=OK            29 CALLS      245 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.497        13.653        .10903E-03   -1.4973    
   2  Index         1.7282        .51784        .66608E-02   -.71333    
   3  Normalizat    1.4484        .22513        .23188E-03   -.79239    
   4  Prefactor     .60060        .18416        .28124E-03   -1.0756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63292e-09
Minuit parameter uncertainties:
  1  13.6557
  2  0.519468
  3  0.225284
  4  0.184341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999468': 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) = 6092.26345126
delta logL = 1.61156233408

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.350e+01  1.366e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  1.728e+00  5.195e-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:  6.006e-01  1.843e-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.448e+00  2.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.19
Ra Dec: 193.733 11.649
Photon Index (Free Index): 1.73 +/- 0.52
Photon Flux (Free Index): 2.57e-08 +/- 2.79e-08
Energy Flux (Free Index): 3.84e-05 +/- 4.24e-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/999468/cmap_HighResolution_582508801_582768001_4FGL_J1254.9+1138_daily_bin1324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.43e-08', energy_flux2='3.84e-05', photon_flux_error='4.63e-08', dlogl='1.61e+00', energy_flux='1.45e-05', photon_flux2='2.57e-08', job_status='DONE', time_completed='2021-09-06 09:54:34.478610', photon_index_error2='0.52', photon_index2='1.73', ts='4.04', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='4.24e-05', EG='1.40', time_epoch_completed='1630947274.48', return_code='0', job_id='999468', GAL2='0.60', EG2='1.45', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='2.79e-08', ts2='7.19', photon_index='2.79' WHERE bin_id='1324' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:54:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 999468: <4FGL_J1254.9+1138_daily_bin1324> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin1324> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 09:41:30 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:41: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:41:31 2021
Terminated at Mon Sep  6 09:54:35 2021
Results reported at Mon Sep  6 09:54:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1324 193.733 11.6495 582508801 582768001 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 :                                   530.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            785 sec.

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

