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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1484
RA = 193.733, Dec = 11.6495
tmin = 623980801, tmax = 624240001
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='705', job_status='RUN', time_executed='2021-09-06 09:47:26.829111', time_epoch_executed='1630946846.83' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1484'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705/ft1_4FGL_J1254.9+1138_daily_bin1484.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705/ft2_4FGL_J1254.9+1138_daily_bin1484.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705/ft1_4FGL_J1254.9+1138_daily_bin1484.fits outfile=/scratch/kocevski/705/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1484.fits ra=193.733 dec=11.6495 rad=12.0 tmin=623980801.0 tmax=624240001.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 4.06
user 3.76
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/705/ft1_filtered_4FGL_J1254.9+1138_daily_bin1484.fits" evtable="EVENTS" scfile=/scratch/kocevski/705/ft2_4FGL_J1254.9+1138_daily_bin1484.fits sctable="SC_DATA" outfile=/scratch/kocevski/705/ltcube_623980801_624240001_4FGL_J1254.9+1138_daily_bin1484.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/705/ft2_4FGL_J1254.9+1138_daily_bin1484.fits
.....................!
real 12.36
user 11.47
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705/ft1_filtered_4FGL_J1254.9+1138_daily_bin1484.fits evtable="EVENTS" scfile=/scratch/kocevski/705/ft2_4FGL_J1254.9+1138_daily_bin1484.fits sctable="SC_DATA" expcube=/scratch/kocevski/705/ltcube_623980801_624240001_4FGL_J1254.9+1138_daily_bin1484.fits outfile=/scratch/kocevski/705/expmap_623980801_624240001_4FGL_J1254.9+1138_daily_bin1484.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/705/ltcube_623980801_624240001_4FGL_J1254.9+1138_daily_bin1484.fits
.....................!
real 192.73
user 187.18
sys 5.02

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/705/ft1_filtered_4FGL_J1254.9+1138_daily_bin1484.fits scfile=/scratch/kocevski/705/ft2_4FGL_J1254.9+1138_daily_bin1484.fits outfile=/scratch/kocevski/705/cmap_623980801_624240001_4FGL_J1254.9+1138_daily_bin1484.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.68
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705/ft1_filtered_4FGL_J1254.9+1138_daily_bin1484.fits scfile=/scratch/kocevski/705/ft2_4FGL_J1254.9+1138_daily_bin1484.fits outfile=/scratch/kocevski/705/cmap_HighResolution_623980801_624240001_4FGL_J1254.9+1138_daily_bin1484.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.57
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.7810       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    41.880       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10768E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.9129       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.334       1.0000         .10000E-03   10000.    
    10 'norm      '    3.6676       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.525       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.105       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10504E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.870       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.914       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15049E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2271       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1289       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6838.719     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     2322 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .78239        .71295E-03** at limit **
   2  Prefactor     .10000E-03    12.288        .18142E-02** at limit **
   3  norm          4.7791        6.1505        .18400E-03    .12048E-04
   4  Prefactor     .10000E-03    45.098        .18142E-02** at limit **
   5  norm          41.867        54.526        .61944E-04    .27567E-04
   6  Prefactor     .10000E-03    55.498        .18142E-02** at limit **
   7  norm          1.9131        1.0396        .52651E-04    .28697E-03
   8  Prefactor     .10000E-03    3.5808        .15272E-02** at limit **
   9  Prefactor     30.330        23.887        .72747E-04    .30943E-04
  10  norm          3.6675        1.9356        .78558E-04    .16382E-03
  11  Prefactor     .10000E-03    42.313        .18142E-02** at limit **
  12  Prefactor     34.570        44.022        .68201E-04    .14669E-04
  13  Prefactor     17.102        9.0699        .96840E-04    .18196E-04
  14  Prefactor     .10000E-03    9.5138        .18142E-02** at limit **
  15  Prefactor     11.869        19.078        .11628E-03    .11381E-03
  16  Prefactor     15.913        16.815        .10040E-03    .44388E-04
  17  Prefactor     .10000E-03    255.39        .90571E-02** at limit **
  18  Prefactor     .10000E-03    16.360        .18142E-02** at limit **
  19  Normalizat    1.2272        .27421        .29889E-03    .23497E-03
  20  Prefactor     1.1289        .22073        .26145E-03    .12941E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.77907
  Prefactor  = 0.0001
  norm       = 41.8666
  Prefactor  = 0.0001
  norm       = 1.9131
  Prefactor  = 0.0001
  Prefactor  = 30.3302
  norm       = 3.66747
  Prefactor  = 0.0001
  Prefactor  = 34.5703
  Prefactor  = 17.1025
  Prefactor  = 0.0001
  Prefactor  = 11.8686
  Prefactor  = 15.9126
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22722
  Prefactor  = 1.12891
 **********
 **   18 **HESSE 
 **********

 FCN=   6838.719     FROM HESSE     STATUS=OK           271 CALLS     2593 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .78240        .14259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.288        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.7791        6.1478        .73601E-05   -1.5271    
   4  Prefactor     .10000E-03    45.105        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          41.867        54.519        .12389E-04   -1.4413    
   6  Prefactor     .10000E-03    55.498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.9131        1.0394        .21060E-05   -1.5431    
   8  Prefactor     .10000E-03    3.5810        .30544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.330        23.887        .29099E-05   -1.4606    
  10  norm          3.6675        1.9354        .31423E-05   -1.5325    
  11  Prefactor     .10000E-03    42.318        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     34.570        44.009        .27280E-05   -1.4531    
  13  Prefactor     17.102        9.0699        .38736E-05   -1.4881    
  14  Prefactor     .10000E-03    9.5159        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.869        19.078        .46510E-05   -1.5019    
  16  Prefactor     15.913        16.814        .40160E-05   -1.4910    
  17  Prefactor     .10000E-03    265.71        .36228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.360        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2272        .27449        .59778E-04   -.85766    
  20  Prefactor     1.1289        .22094        .10458E-04   -.88548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57909e-10
Minuit parameter uncertainties:
  1  7.54504e-07
  2  3.21306e-05
  3  6.14863
  4  2.80588e-05
  5  54.5839
  6  0.000244869
  7  1.03944
  8  1.71682e-06
  9  23.8942
  10  1.93547
  11  8.94719e-05
  12  44.0506
  13  9.07065
  14  2.2141e-05
  15  19.0873
  16  16.8192
  17  3.75555e-05
  18  9.89249e-06
  19  0.274813
  20  0.221115
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  2.214e-05  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.129e+00  2.211e-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.227e+00  2.748e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/705/likelihoodResults_623980801_624240001_4FGL_J1254.9+1138_daily_bin1484.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): 102
logL (Free Index) = 6838.71921236
delta logL = -0.000500792322782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6838.71871174
delta logL = -1.74592059921e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7872       1.0000          .0000       10.000    
     3 'Normalizat'    1.2271       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1290       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6838.719     FROM MIGRAD    STATUS=FAILED        91 CALLS      249 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10025E-03    901.42        .18142E-02** at limit **
   2  Index         2.7386        8.1280        .50000        .25810E-05
   3  Normalizat    1.2272        .60600E-01    .29889E-03    .30049E-04
   4  Prefactor     1.1289        .51337E-01    .26145E-03    .33004E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6838.719     FROM SIMPLEX   STATUS=UNCHANGED    162 CALLS      411 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10025E-03    901.42        .44988E-03** at limit **
   2  Index         2.7386        8.1280        .21322E-04    .25810E-05
   3  Normalizat    1.2272        .60600E-01    .44451E-06    .30049E-04
   4  Prefactor     1.1289        .51337E-01    .32674E-06    .33004E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6838.719     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      452 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.998        .36285E-03** at limit **
   2  Index         2.6333        5.3141        .50000       -.43633E-07
   3  Normalizat    1.2272        .25626        .11956E-04   -.89005E-04
   4  Prefactor     1.1289        .21722        .10458E-04   -.10066E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.63328
  Normalizat = 1.22721
  Prefactor  = 1.12891
 **********
 **   18 **HESSE 
 **********

 FCN=   6838.719     FROM HESSE     STATUS=OK            29 CALLS      481 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7449        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6333        7.7603        .50000       -.49308    
   3  Normalizat    1.2272        .25598        .23911E-05   -.85766    
   4  Prefactor     1.1289        .21699        .20916E-05   -.88548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58694e-11
Minuit parameter uncertainties:
  1  3.64692e-06
  2  216.211
  3  0.256243
  4  0.21716
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705': 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) = 6838.7187115
delta logL = 6.97527866578e-08

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  3.647e-06  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.633e+00  2.162e+02  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.129e+00  2.172e-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.227e+00  2.562e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.733 11.649

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/705/cmap_HighResolution_623980801_624240001_4FGL_J1254.9+1138_daily_bin1484.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.31e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-06 09:58:58.695285', job_id='705', GAL2='1.13', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630947538.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='6.98e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1484' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:58:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 705: <4FGL_J1254.9+1138_daily_bin1484> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1484 193.733 11.6495 623980801 624240001 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 :                                   647.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            811 sec.

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

