/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 162 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 = 7420
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1254.9+1138_daily_bin17
RA = 193.733, Dec = 11.6495
tmin = 243734401, tmax = 243993601
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='993103', job_status='RUN', time_executed='2021-09-06 09:23:47.478434', time_epoch_executed='1630945427.48' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='17'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993103

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993103/ft1_4FGL_J1254.9+1138_daily_bin17.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993103/ft2_4FGL_J1254.9+1138_daily_bin17.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993103/ft1_4FGL_J1254.9+1138_daily_bin17.fits outfile=/scratch/kocevski/993103/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin17.fits ra=193.733 dec=11.6495 rad=12.0 tmin=243734401.0 tmax=243993601.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 1.42
user 1.21
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993103/ft1_filtered_4FGL_J1254.9+1138_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/993103/ft2_4FGL_J1254.9+1138_daily_bin17.fits sctable="SC_DATA" expcube=/scratch/kocevski/993103/ltcube_243734401_243993601_4FGL_J1254.9+1138_daily_bin17.fits outfile=/scratch/kocevski/993103/expmap_243734401_243993601_4FGL_J1254.9+1138_daily_bin17.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/993103/ltcube_243734401_243993601_4FGL_J1254.9+1138_daily_bin17.fits
.....................!
real 191.69
user 186.12
sys 5.21

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/993103/ft1_filtered_4FGL_J1254.9+1138_daily_bin17.fits scfile=/scratch/kocevski/993103/ft2_4FGL_J1254.9+1138_daily_bin17.fits outfile=/scratch/kocevski/993103/cmap_243734401_243993601_4FGL_J1254.9+1138_daily_bin17.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.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993103/ft1_filtered_4FGL_J1254.9+1138_daily_bin17.fits scfile=/scratch/kocevski/993103/ft2_4FGL_J1254.9+1138_daily_bin17.fits outfile=/scratch/kocevski/993103/cmap_HighResolution_243734401_243993601_4FGL_J1254.9+1138_daily_bin17.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9735       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2567       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13665E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    111.26       1.0000         .10000E-03   10000.    
     7 'norm      '    9.9796       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0291       1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.554       1.0000         .10000E-03   10000.    
    10 'norm      '    5.9912       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    46.261       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5103       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1578       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7705       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0351       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.0868       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .61747       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4190       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=   8409.901     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     2043 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .94999        .63081E-07** at limit **
   2  Prefactor     4.9723        24.875       -.11936E-05   -.27023E-04
   3  norm          1.2590        4.7954        .17444E-05   -.38473E-03
   4  Prefactor     .10005E-03    73.447       -.13674E-04** at limit **
   5  norm          .10000E-03    16.481       -.17689E-06** at limit **
   6  Prefactor     111.26        103.90       -.88346E-06   -.62505E-05
   7  norm          9.9794        1.2780       -.66692E-07   -.36078E-03
   8  Prefactor     6.0295        7.6898        .13414E-05   -.76888E-03
   9  Prefactor     48.554        26.354       -.22931E-06    .30562E-05
  10  norm          5.9914        2.0046        .17975E-07   -.85097E-04
  11  Prefactor     .10000E-03    10.601        .38764E-07** at limit **
  12  Prefactor     46.271        54.656        .42870E-05    .28875E-03
  13  Prefactor     5.5111        8.1270        .31415E-05   -.12641E-02
  14  Prefactor     6.1532        12.827        .70995E-06    .18711E-03
  15  Prefactor     5.7735        10.769       -.93315E-06   -.23224E-03
  16  Prefactor     2.0352        4.1321        .57529E-06   -.19296E-04
  17  Prefactor     6.0753        22.072       -.25833E-05   -.14127E-03
  18  Prefactor     .10005E-03    69.323        .12643E-04** at limit **
  19  Normalizat    .61734        .19100       -.16444E-05   -.30549E-04
  20  Prefactor     1.4190        .16273       -.88393E-07   -.39959E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.97229
  norm       = 1.25901
  Prefactor  = 0.000100049
  norm       = 0.0001
  Prefactor  = 111.262
  norm       = 9.97945
  Prefactor  = 6.02954
  Prefactor  = 48.5543
  norm       = 5.99141
  Prefactor  = 0.0001
  Prefactor  = 46.2712
  Prefactor  = 5.5111
  Prefactor  = 6.15316
  Prefactor  = 5.77349
  Prefactor  = 2.03516
  Prefactor  = 6.07526
  Prefactor  = 0.000100047
  Normalizat = 0.617339
  Prefactor  = 1.41902
 **********
 **   18 **HESSE 
 **********

 FCN=   8409.901     FROM HESSE     STATUS=OK           299 CALLS     2342 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6136        .17395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9723        24.297        .18033E-03   -1.5262    
   3  norm          1.2590        4.7605        .32842E-03   -1.5484    
   4  Prefactor     .10005E-03    77.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    16.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     111.26        103.70        .38134E-04   -1.3594    
   7  norm          9.9794        1.2544        .31649E-04   -1.5076    
   8  Prefactor     6.0295        7.9008        .81761E-03   -1.5217    
   9  Prefactor     48.554        26.346        .57548E-04   -1.4313    
  10  norm          5.9914        2.0031        .70666E-04   -1.5218    
  11  Prefactor     .10000E-03    10.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     46.271        54.984        .58950E-04   -1.4346    
  13  Prefactor     5.5111        9.0655        .85581E-03   -1.5238    
  14  Prefactor     6.1532        12.705        .16178E-03   -1.5212    
  15  Prefactor     5.7735        10.812        .16720E-03   -1.5227    
  16  Prefactor     2.0352        4.1010        .25863E-03   -1.5423    
  17  Prefactor     6.0753        22.265        .16273E-03   -1.5215    
  18  Prefactor     .10005E-03    73.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .61734        .21604        .38072E-03   -1.0725    
  20  Prefactor     1.4190        .18640        .23416E-03   -.79834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23047e-09
Minuit parameter uncertainties:
  1  3.07226e-06
  2  21.9972
  3  4.76191
  4  0.00392933
  5  2.45531e-05
  6  103.87
  7  1.25438
  8  7.90218
  9  26.3523
  10  2.00312
  11  5.05963e-06
  12  55.044
  13  9.06775
  14  12.7104
  15  10.8154
  16  4.10156
  17  22.2951
  18  0.00373248
  19  0.21634
  20  0.186485
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.419e+00  1.865e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  6.173e-01  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/993103/likelihoodResults_243734401_243993601_4FGL_J1254.9+1138_daily_bin17.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): 0
logL (Free Index) = 8409.8444172
delta logL = 0.056797328918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8409.82998605
delta logL = 0.0712284704696

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4043       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4952       1.0000          .0000       10.000    
     3 'Normalizat'    .60014       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4293       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=   8409.830     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      239 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3931        121.84        .47975E-02    .36637E-03
   2  Index         3.4993        3.7467        .37894        .39124E-04
   3  Normalizat    .59978        .35870E-01    .87125E-01    .46215E-04
   4  Prefactor     1.4295        .31852E-01    .52806E-01   -.43558E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.39312
  Index      = 3.4993
  Normalizat = 0.599782
  Prefactor  = 1.42953
 **********
 **   18 **HESSE 
 **********

 FCN=   8409.830     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3931        14.194        .19190E-03   -1.5289    
   2  Index         3.4993        2.7200        .11050E-01   -.30484    
   3  Normalizat    .59978        .21545        .38598E-03   -1.0799    
   4  Prefactor     1.4295        .18851        .23344E-03   -.79533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23849e-11
Minuit parameter uncertainties:
  1  14.205
  2  2.89445
  3  0.215748
  4  0.188604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993103': 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) = 8409.82998331
delta logL = 0.0712312152154

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  4.393e+00  1.421e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  3.499e+00  2.894e+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:  1.430e+00  1.886e-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:  5.998e-01  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
Ra Dec: 193.733 11.649

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/993103/cmap_HighResolution_243734401_243993601_4FGL_J1254.9+1138_daily_bin17.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.72e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-06 09:35:10.598345', job_id='993103', GAL2='1.43', fit_tolerance='1e-08', EG2='0.60', EG='0.62', time_epoch_completed='1630946110.6', return_code2='0', ts='0.38', comment='SUCCESS', return_code='0', GAL='1.42', dlogl='7.12e-02', ts2='0.56', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='17' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:35:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 993103: <4FGL_J1254.9+1138_daily_bin17> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin17 193.733 11.6495 243734401 243993601 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 :                                   680.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             286.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            859 sec.

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

