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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin685
RA = 193.733, Dec = 11.6495
tmin = 416880001, tmax = 417139201
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='997238', job_status='RUN', time_executed='2021-09-06 09:35:38.582978', time_epoch_executed='1630946138.58' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='685'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997238

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997238/ft1_4FGL_J1254.9+1138_daily_bin685.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997238/ft2_4FGL_J1254.9+1138_daily_bin685.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997238/ft1_4FGL_J1254.9+1138_daily_bin685.fits outfile=/scratch/kocevski/997238/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin685.fits ra=193.733 dec=11.6495 rad=12.0 tmin=416880001.0 tmax=417139201.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 5.33
user 5.00
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997238/ft1_filtered_4FGL_J1254.9+1138_daily_bin685.fits" evtable="EVENTS" scfile=/scratch/kocevski/997238/ft2_4FGL_J1254.9+1138_daily_bin685.fits sctable="SC_DATA" outfile=/scratch/kocevski/997238/ltcube_416880001_417139201_4FGL_J1254.9+1138_daily_bin685.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/997238/ft2_4FGL_J1254.9+1138_daily_bin685.fits
.....................!
real 12.39
user 12.04
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997238/ft1_filtered_4FGL_J1254.9+1138_daily_bin685.fits evtable="EVENTS" scfile=/scratch/kocevski/997238/ft2_4FGL_J1254.9+1138_daily_bin685.fits sctable="SC_DATA" expcube=/scratch/kocevski/997238/ltcube_416880001_417139201_4FGL_J1254.9+1138_daily_bin685.fits outfile=/scratch/kocevski/997238/expmap_416880001_417139201_4FGL_J1254.9+1138_daily_bin685.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/997238/ltcube_416880001_417139201_4FGL_J1254.9+1138_daily_bin685.fits
.....................!
real 190.91
user 186.33
sys 4.22

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/997238/ft1_filtered_4FGL_J1254.9+1138_daily_bin685.fits scfile=/scratch/kocevski/997238/ft2_4FGL_J1254.9+1138_daily_bin685.fits outfile=/scratch/kocevski/997238/cmap_416880001_417139201_4FGL_J1254.9+1138_daily_bin685.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997238/ft1_filtered_4FGL_J1254.9+1138_daily_bin685.fits scfile=/scratch/kocevski/997238/ft2_4FGL_J1254.9+1138_daily_bin685.fits outfile=/scratch/kocevski/997238/cmap_HighResolution_416880001_417139201_4FGL_J1254.9+1138_daily_bin685.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64920       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.2227       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.783       1.0000         .10000E-03   10000.    
     5 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.4050       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2392       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.509       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3743       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.061       1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.525       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12307E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.620       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98581       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91947       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=   4767.114     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     2018 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64784        3.4911       -.13159E-06   -.29445E-03
   2  Prefactor     .10000E-03    11.235       -.29246E-05** at limit **
   3  norm          6.2232        4.8800       -.48785E-06   -.69155E-04
   4  Prefactor     29.771        38.814       -.11187E-04    .11061E-05
   5  norm          .10000E-03    16.650       -.54800E-05** at limit **
   6  Prefactor     .10000E-03    93.797        .54087E-05** at limit **
   7  norm          1.4053        .84862        .10774E-06    .89360E-04
   8  Prefactor     6.2432        11.550        .76346E-05   -.19378E-04
   9  Prefactor     20.478        31.929       -.27180E-04   -.23137E-04
  10  norm          1.3747        2.2180       -.43303E-06   -.68273E-03
  11  Prefactor     13.048        29.233       -.97861E-05   -.31779E-05
  12  Prefactor     31.559        52.474        .43435E-04    .53795E-05
  13  Prefactor     .10000E-03    11.550        .11786E-04** at limit **
  14  Prefactor     .10001E-03    23.796        .73818E-08** at limit **
  15  Prefactor     35.644        22.033       -.75383E-06   -.21803E-04
  16  Prefactor     .10000E-03    10.896       -.92783E-05** at limit **
  17  Prefactor     .10000E-03    9.7839        .18930E-05** at limit **
  18  Prefactor     .10000E-03    16.228        .81042E-06** at limit **
  19  Normalizat    .98529        .23210       -.29732E-07    .48289E-05
  20  Prefactor     .91988        .18212        .57221E-06   -.23832E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.647836
  Prefactor  = 0.0001
  norm       = 6.22325
  Prefactor  = 29.7711
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.40533
  Prefactor  = 6.24322
  Prefactor  = 20.4784
  norm       = 1.37472
  Prefactor  = 13.0485
  Prefactor  = 31.5589
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 35.6439
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.985289
  Prefactor  = 0.919881
 **********
 **   18 **HESSE 
 **********

 FCN=   4767.114     FROM HESSE     STATUS=OK           297 CALLS     2315 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64784        6.3089        .24264E-02   -1.5547    
   2  Prefactor     .10000E-03    11.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.2232        4.8701        .12112E-03   -1.5209    
   4  Prefactor     29.771        38.815        .73415E-04   -1.4616    
   5  norm          .10000E-03    16.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    93.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.4053        .83159        .43872E-04   -1.5471    
   8  Prefactor     6.2432        11.507        .16071E-03   -1.5208    
   9  Prefactor     20.478        31.859        .88443E-04   -1.4803    
  10  norm          1.3747        2.1745        .11725E-03   -1.5473    
  11  Prefactor     13.048        29.224        .11084E-03   -1.4985    
  12  Prefactor     31.559        52.448        .71363E-04   -1.4584    
  13  Prefactor     .10000E-03    11.852        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    24.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     35.644        22.142        .67148E-04   -1.4513    
  16  Prefactor     .10000E-03    10.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.7849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .98529        .26630        .27919E-03   -.93525    
  20  Prefactor     .91988        .20966        .24063E-03   -.95450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.44357e-10
Minuit parameter uncertainties:
  1  4.04359
  2  1.69419e-05
  3  4.87037
  4  38.848
  5  1.49907e-05
  6  0.000137008
  7  0.831601
  8  11.5113
  9  31.8852
  10  2.17466
  11  29.2563
  12  52.5248
  13  0.000129009
  14  0.0011216
  15  22.1473
  16  3.64456e-06
  17  1.41582e-06
  18  1.45944e-06
  19  0.266656
  20  0.209848
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  1.122e-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.199e-01  2.098e-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:  9.853e-01  2.667e-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.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/997238/likelihoodResults_416880001_417139201_4FGL_J1254.9+1138_daily_bin685.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) = 4767.11430913
delta logL = -0.000198007052859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4766.96467777
delta logL = 0.149433345201

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2627       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6927       1.0000          .0000       10.000    
     3 'Normalizat'    .94224       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94084       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=   4766.965     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      325 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2614        218.54        .69390E-03   -.73816E-03
   2  Index         4.6944        6.8803        .12641E-01   -.55332E-04
   3  Normalizat    .94210        .21928        .28461E-03   -.70103E-04
   4  Prefactor     .94088        .17338        .23815E-03   -.58669E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.26141
  Index      = 4.69437
  Normalizat = 0.942102
  Prefactor  = 0.940882
 **********
 **   18 **HESSE 
 **********

 FCN=   4766.965     FROM HESSE     STATUS=OK            25 CALLS      350 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2614        5.6345        .27756E-04   -1.5483    
   2  Index         4.6944        2.8722        .50566E-03   -.61165E-01
   3  Normalizat    .94210        .25857        .11384E-04   -.94996    
   4  Prefactor     .94088        .21102        .95261E-05   -.94727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10666e-10
Minuit parameter uncertainties:
  1  5.33257
  2  3.0604
  3  0.258915
  4  0.211203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997238': 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) = 4766.96467728
delta logL = 0.149433840581

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.261e+00  5.333e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  4.694e+00  3.060e+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.409e-01  2.112e-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:  9.421e-01  2.589e-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/997238/cmap_HighResolution_416880001_417139201_4FGL_J1254.9+1138_daily_bin685.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-09-06 09:44:28.899170', job_id='997238', GAL2='0.94', fit_tolerance='1e-08', EG2='0.94', EG='0.99', time_epoch_completed='1630946668.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.49e-01', ts2='0.34', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='685' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:44:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 997238: <4FGL_J1254.9+1138_daily_bin685> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin685> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 09:35:25 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:35:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 09:35:27 2021
Terminated at Mon Sep  6 09:44:29 2021
Results reported at Mon Sep  6 09:44:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin685 193.733 11.6495 416880001 417139201 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 :                                   528.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             388.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   542 sec.
    Turnaround time :                            544 sec.

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

