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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1253
RA = 193.733, Dec = 11.6495
tmin = 564105601, tmax = 564364801
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='999358', job_status='RUN', time_executed='2021-09-06 09:45:09.607211', time_epoch_executed='1630946709.61' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1253'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999358

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999358/ft1_4FGL_J1254.9+1138_daily_bin1253.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999358/ft2_4FGL_J1254.9+1138_daily_bin1253.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999358/ft1_4FGL_J1254.9+1138_daily_bin1253.fits outfile=/scratch/kocevski/999358/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1253.fits ra=193.733 dec=11.6495 rad=12.0 tmin=564105601.0 tmax=564364801.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.34
user 3.03
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999358/ft1_filtered_4FGL_J1254.9+1138_daily_bin1253.fits evtable="EVENTS" scfile=/scratch/kocevski/999358/ft2_4FGL_J1254.9+1138_daily_bin1253.fits sctable="SC_DATA" expcube=/scratch/kocevski/999358/ltcube_564105601_564364801_4FGL_J1254.9+1138_daily_bin1253.fits outfile=/scratch/kocevski/999358/expmap_564105601_564364801_4FGL_J1254.9+1138_daily_bin1253.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/999358/ltcube_564105601_564364801_4FGL_J1254.9+1138_daily_bin1253.fits
.....................!
real 191.24
user 185.40
sys 5.16

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/999358/ft1_filtered_4FGL_J1254.9+1138_daily_bin1253.fits scfile=/scratch/kocevski/999358/ft2_4FGL_J1254.9+1138_daily_bin1253.fits outfile=/scratch/kocevski/999358/cmap_564105601_564364801_4FGL_J1254.9+1138_daily_bin1253.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999358/ft1_filtered_4FGL_J1254.9+1138_daily_bin1253.fits scfile=/scratch/kocevski/999358/ft2_4FGL_J1254.9+1138_daily_bin1253.fits outfile=/scratch/kocevski/999358/cmap_HighResolution_564105601_564364801_4FGL_J1254.9+1138_daily_bin1253.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=193.733 yref=11.6495 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1604       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.257       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2521       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7523       1.0000         .10000E-03   10000.    
     5 'norm      '    30.434       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .38149       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.0668       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1681       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .87960E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .84471E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.131       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.352       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0550       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .77074       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=   4629.555     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     2454 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1601        3.4818        .11164E-03   -.29838E-04
   2  Prefactor     23.202        58.066        .83060E-04   -.26417E-04
   3  norm          2.2597        7.8087        .12677E-02   -.33516E-03
   4  Prefactor     4.7466        68.370        .18457E-03   -.40284E-04
   5  norm          30.396        52.015        .72628E-04   -.34594E-04
   6  Prefactor     .10000E-03    117.18        .18142E-02** at limit **
   7  norm          .38092        .89033        .89543E-04   -.40768E-03
   8  Prefactor     .10000E-03    4.9527        .14776E-02** at limit **
   9  Prefactor     .10000E-03    14.199        .18142E-02** at limit **
  10  norm          7.0666        2.9810        .70868E-04   -.59693E-03
  11  Prefactor     .10000E-03    31.436        .18142E-02** at limit **
  12  Prefactor     .10000E-03    24.493        .18142E-02** at limit **
  13  Prefactor     5.1672        4.9742        .14419E-03   -.28384E-05
  14  Prefactor     .10092E-03    16.930        .62412E-01** at limit **
  15  Prefactor     .10000E-03    22.879        .36285E-03** at limit **
  16  Prefactor     .11704E-03    24.294        .69867E-01** at limit **
  17  Prefactor     38.130        30.407        .64907E-04   -.14188E-04
  18  Prefactor     33.338        65.032        .69386E-04   -.37685E-05
  19  Normalizat    1.0551        .24941        .24852E-03   -.97896E-04
  20  Prefactor     .77076        .20359        .24156E-03   -.30297E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.1601
  Prefactor  = 23.2019
  norm       = 2.25974
  Prefactor  = 4.74664
  norm       = 30.3962
  Prefactor  = 0.0001
  norm       = 0.380916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.06662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.1672
  Prefactor  = 0.000100922
  Prefactor  = 0.000100001
  Prefactor  = 0.000117044
  Prefactor  = 38.1304
  Prefactor  = 33.338
  Normalizat = 1.05506
  Prefactor  = 0.770762
 **********
 **   18 **HESSE 
 **********

 FCN=   4629.555     FROM HESSE     STATUS=OK           293 CALLS     2747 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1601        3.4817        .44655E-05   -1.5300    
   2  Prefactor     23.202        57.657        .33224E-05   -1.4744    
   3  norm          2.2597        7.7246        .50706E-04   -1.5407    
   4  Prefactor     4.7466        68.344        .73827E-05   -1.5272    
   5  norm          30.396        51.888        .14526E-04   -1.4605    
   6  Prefactor     .10000E-03    117.18        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .38092        .88911        .35817E-05   -1.5585    
   8  Prefactor     .10000E-03    4.9529        .29552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.0666        2.9795        .28347E-05   -1.5176    
  11  Prefactor     .10000E-03    31.437        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.494        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.1672        4.9741        .57676E-05   -1.5253    
  14  Prefactor     .10092E-03    14.167        .70116E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.880        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11704E-03    19.909        .78773E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.130        30.407        .12981E-04   -1.4472    
  18  Prefactor     33.338        65.027        .27755E-05   -1.4553    
  19  Normalizat    1.0551        .24954        .99407E-05   -.91208    
  20  Prefactor     .77076        .20368        .48313E-04   -1.0082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93686e-09
Minuit parameter uncertainties:
  1  3.48191
  2  57.7962
  3  7.72798
  4  36.0719
  5  51.9647
  6  0.000203249
  7  0.889143
  8  1.29414e-05
  9  4.00026e-05
  10  2.97958
  11  1.66412e-05
  12  6.32647e-05
  13  4.97448
  14  0.00722962
  15  0.00031428
  16  0.036854
  17  30.4196
  18  65.1658
  19  0.249818
  20  0.203883
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.009e-04  7.230e-03  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:  7.708e-01  2.039e-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.055e+00  2.498e-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.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/999358/likelihoodResults_564105601_564364801_4FGL_J1254.9+1138_daily_bin1253.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) = 4629.55482819
delta logL = -2.15792879317e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4629.43860558
delta logL = 0.116201023352

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11436       1.0000         .10000E-03   10000.    
     2 'Index     '    6.1115       1.0000          .0000       10.000    
     3 'Normalizat'    1.0253       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78683       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=   4629.439     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      417 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11438        5.1383        .95795E-02    .23670E-02
   2  Index         6.1115        7.8053        .26960        .57641E-04
   3  Normalizat    1.0254        .30886E-01    .42662E-01    .80042E-05
   4  Prefactor     .78681        .26180E-01    .43546E-01    .10221E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.114378
  Index      = 6.11154
  Normalizat = 1.02537
  Prefactor  = 0.786808
 **********
 **   18 **HESSE 
 **********

 FCN=   4629.439     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      452 TOTAL
                     EDM=   .91E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11438        27.868        .51808E-03   -1.5640    
   2  Index         6.1115        6.8854        .15353E-01    .22418    
   3  Normalizat    1.0254        .13930        .25180E-03   -.92185    
   4  Prefactor     .78681        .11690        .23937E-03   -1.0022    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.13071e-07
Minuit parameter uncertainties:
  1  3.57081
  2  23.0054
  3  0.139345
  4  0.116941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999358': 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): 102
logL (Free Index) = 4629.43860556
delta logL = 0.116201043023

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.144e-01  3.571e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  6.112e+00  2.301e+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:  7.868e-01  1.169e-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.025e+00  1.393e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/999358/cmap_HighResolution_564105601_564364801_4FGL_J1254.9+1138_daily_bin1253.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.52e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-06 09:55:43.651061', job_id='999358', GAL2='0.79', fit_tolerance='1e-08', EG2='1.03', EG='1.06', time_epoch_completed='1630947343.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.16e-01', ts2='0.25', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1253' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:55:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 999358: <4FGL_J1254.9+1138_daily_bin1253> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1253 193.733 11.6495 564105601 564364801 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 :                                   540.05 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             198.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            864 sec.

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

