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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1448
RA = 193.733, Dec = 11.6495
tmin = 614649601, tmax = 614908801
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='999662', job_status='RUN', time_executed='2021-09-06 09:45:22.749578', time_epoch_executed='1630946722.75' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1448'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999662

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999662/ft1_4FGL_J1254.9+1138_daily_bin1448.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999662/ft2_4FGL_J1254.9+1138_daily_bin1448.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999662/ft1_4FGL_J1254.9+1138_daily_bin1448.fits outfile=/scratch/kocevski/999662/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1448.fits ra=193.733 dec=11.6495 rad=12.0 tmin=614649601.0 tmax=614908801.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.64
user 3.41
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999662/ft1_filtered_4FGL_J1254.9+1138_daily_bin1448.fits evtable="EVENTS" scfile=/scratch/kocevski/999662/ft2_4FGL_J1254.9+1138_daily_bin1448.fits sctable="SC_DATA" expcube=/scratch/kocevski/999662/ltcube_614649601_614908801_4FGL_J1254.9+1138_daily_bin1448.fits outfile=/scratch/kocevski/999662/expmap_614649601_614908801_4FGL_J1254.9+1138_daily_bin1448.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/999662/ltcube_614649601_614908801_4FGL_J1254.9+1138_daily_bin1448.fits
.....................!
real 191.33
user 186.02
sys 4.56

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/999662/ft1_filtered_4FGL_J1254.9+1138_daily_bin1448.fits scfile=/scratch/kocevski/999662/ft2_4FGL_J1254.9+1138_daily_bin1448.fits outfile=/scratch/kocevski/999662/cmap_614649601_614908801_4FGL_J1254.9+1138_daily_bin1448.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.55
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10337E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0934       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11058E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.8092       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7648       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0040       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .45604E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.257       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.0569       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.696       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2257       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96506       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=   6538.493     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     1813 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0656       -.20899E-07** at limit **
   2  Prefactor     .10000E-03    9.4982       -.58038E-07** at limit **
   3  norm          .10000E-03    2.6719        .77546E-07** at limit **
   4  Prefactor     .10000E-03    34.007       -.36589E-06** at limit **
   5  norm          .10000E-03    16.936       -.56706E-07** at limit **
   6  Prefactor     .10000E-03    104.85       -.53309E-05** at limit **
   7  norm          1.0932        .79480        .22793E-07    .29342E-04
   8  Prefactor     .10003E-03    9.7363        .68352E-06** at limit **
   9  Prefactor     .10000E-03    17.863       -.14773E-06** at limit **
  10  norm          8.8089        2.6043        .24607E-07    .14843E-04
  11  Prefactor     .10000E-03    27.044        .47049E-07** at limit **
  12  Prefactor     3.7455        181.04       -.84092E-05   -.19725E-04
  13  Prefactor     4.0027        6.8866        .21014E-05   -.12096E-04
  14  Prefactor     .10073E-03    11.843       -.10628E-06** at limit **
  15  Prefactor     24.268        17.633        .16292E-06   -.82249E-04
  16  Prefactor     8.0558        8.8841        .27175E-06   -.12218E-04
  17  Prefactor     19.652        30.288       -.77097E-06    .44250E-05
  18  Prefactor     .10000E-03    92.820        .41402E-05** at limit **
  19  Normalizat    1.2259        .21288       -.16054E-06   -.87535E-04
  20  Prefactor     .96504        .17132       -.72996E-07   -.83879E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.09323
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  norm       = 8.80891
  Prefactor  = 0.0001
  Prefactor  = 3.74547
  Prefactor  = 4.00274
  Prefactor  = 0.000100728
  Prefactor  = 24.2681
  Prefactor  = 8.05583
  Prefactor  = 19.6525
  Prefactor  = 0.0001
  Normalizat = 1.22593
  Prefactor  = 0.965035
 **********
 **   18 **HESSE 
 **********

 FCN=   6538.493     FROM HESSE     STATUS=OK           305 CALLS     2118 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0721        .81505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.5019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.2984        .24265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    34.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    16.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    103.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0932        .73908        .54027E-04   -1.5499    
   8  Prefactor     .10003E-03    124.32        .47116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.8089        2.5910        .64733E-04   -1.5114    
  11  Prefactor     .10000E-03    27.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.7455        192.53        .20807E-03   -1.5321    
  13  Prefactor     4.0027        6.8540        .10077E-02   -1.5308    
  14  Prefactor     .10073E-03    16.881        .71421E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.268        17.616        .81332E-04   -1.4722    
  16  Prefactor     8.0558        8.8855        .70626E-03   -1.5140    
  17  Prefactor     19.652        30.249        .90249E-04   -1.4821    
  18  Prefactor     .10000E-03    92.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2259        .25147        .27675E-03   -.85805    
  20  Prefactor     .96504        .20319        .25725E-03   -.93904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55391e-10
Minuit parameter uncertainties:
  1  6.02295e-07
  2  1.00246e-07
  3  8.63417e-06
  4  7.06727e-06
  5  8.93668e-07
  6  0.00033614
  7  0.739091
  8  0.00364056
  9  1.90852e-06
  10  2.59104
  11  1.01967e-05
  12  53.8912
  13  6.85538
  14  0.00701508
  15  17.6202
  16  8.88693
  17  30.2721
  18  0.000327714
  19  0.251722
  20  0.203351
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.007e-04  7.015e-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:  9.650e-01  2.034e-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.226e+00  2.517e-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.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/999662/likelihoodResults_614649601_614908801_4FGL_J1254.9+1138_daily_bin1448.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) = 6538.49339717
delta logL = -1.76388330146e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6538.49339715
delta logL = -1.76257944986e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96352E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7911       1.0000          .0000       10.000    
     3 'Normalizat'    1.2259       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96505       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6538.488     FROM MIGRAD    STATUS=CONVERGED    186 CALLS      358 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1005        28.725        .18143E-02   -.43494E-04
   2  Index         2.3216        2.6423        .22518E-01    .35100E-04
   3  Normalizat    1.2253        .24053        .27681E-03    .19222E-03
   4  Prefactor     .96374        .20243        .25741E-03    .22094E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.10051
  Index      = 2.32164
  Normalizat = 1.22528
  Prefactor  = 0.96374
 **********
 **   18 **HESSE 
 **********

 FCN=   6538.488     FROM HESSE     STATUS=OK            25 CALLS      383 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1005        29.040        .72571E-04   -1.5498    
   2  Index         2.3216        2.6608        .90074E-03   -.56530    
   3  Normalizat    1.2253        .24077        .55362E-04   -.85825    
   4  Prefactor     .96374        .20254        .51482E-04   -.93948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81616e-10
Minuit parameter uncertainties:
  1  11.3121
  2  2.8787
  3  0.24099
  4  0.202697
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999662': 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) = 6538.48833455
delta logL = 0.00504497892598

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.101e+00  1.131e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.322e+00  2.879e+00  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.637e-01  2.027e-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.225e+00  2.410e-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/999662/cmap_HighResolution_614649601_614908801_4FGL_J1254.9+1138_daily_bin1448.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.50e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-06 09:56:46.570290', job_id='999662', GAL2='0.96', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630947406.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='5.04e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1448' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:56:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 999662: <4FGL_J1254.9+1138_daily_bin1448> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1448 193.733 11.6495 614649601 614908801 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 :                                   603.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             269.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            902 sec.

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

