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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1054
RA = 193.733, Dec = 11.6495
tmin = 512524801, tmax = 512784001
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='999029', job_status='RUN', time_executed='2021-09-06 09:44:53.177607', time_epoch_executed='1630946693.18' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1054'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999029

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999029/ft1_4FGL_J1254.9+1138_daily_bin1054.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999029/ft2_4FGL_J1254.9+1138_daily_bin1054.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999029/ft1_4FGL_J1254.9+1138_daily_bin1054.fits outfile=/scratch/kocevski/999029/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1054.fits ra=193.733 dec=11.6495 rad=12.0 tmin=512524801.0 tmax=512784001.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.70
user 3.47
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/999029/ft2_4FGL_J1254.9+1138_daily_bin1054.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/999029/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1054.fits evtable="EVENTS" outfile="/scratch/kocevski/999029/ft1_filtered_4FGL_J1254.9+1138_daily_bin1054.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/999029/ft1_filtered_4FGL_J1254.9+1138_daily_bin1054.fits" evtable="EVENTS" scfile=/scratch/kocevski/999029/ft2_4FGL_J1254.9+1138_daily_bin1054.fits sctable="SC_DATA" outfile=/scratch/kocevski/999029/ltcube_512524801_512784001_4FGL_J1254.9+1138_daily_bin1054.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/999029/ft2_4FGL_J1254.9+1138_daily_bin1054.fits
.....................!
real 11.71
user 11.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999029/ft1_filtered_4FGL_J1254.9+1138_daily_bin1054.fits evtable="EVENTS" scfile=/scratch/kocevski/999029/ft2_4FGL_J1254.9+1138_daily_bin1054.fits sctable="SC_DATA" expcube=/scratch/kocevski/999029/ltcube_512524801_512784001_4FGL_J1254.9+1138_daily_bin1054.fits outfile=/scratch/kocevski/999029/expmap_512524801_512784001_4FGL_J1254.9+1138_daily_bin1054.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/999029/ltcube_512524801_512784001_4FGL_J1254.9+1138_daily_bin1054.fits
.....................!
real 190.59
user 185.35
sys 4.83

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/999029/ft1_filtered_4FGL_J1254.9+1138_daily_bin1054.fits scfile=/scratch/kocevski/999029/ft2_4FGL_J1254.9+1138_daily_bin1054.fits outfile=/scratch/kocevski/999029/cmap_512524801_512784001_4FGL_J1254.9+1138_daily_bin1054.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999029/ft1_filtered_4FGL_J1254.9+1138_daily_bin1054.fits scfile=/scratch/kocevski/999029/ft2_4FGL_J1254.9+1138_daily_bin1054.fits outfile=/scratch/kocevski/999029/cmap_HighResolution_512524801_512784001_4FGL_J1254.9+1138_daily_bin1054.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.55
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/999029/ft1_filtered_4FGL_J1254.9+1138_daily_bin1054.fits', '/scratch/kocevski/999029/ft2_4FGL_J1254.9+1138_daily_bin1054.fits', expMap='/scratch/kocevski/999029/expmap_512524801_512784001_4FGL_J1254.9+1138_daily_bin1054.fits', expCube='/scratch/kocevski/999029/ltcube_512524801_512784001_4FGL_J1254.9+1138_daily_bin1054.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/999029/Model_4FGL_J1254.9+1138_daily_bin1054.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/999029/ft1_filtered_4FGL_J1254.9+1138_daily_bin1054.fits
Spacecraft file(s): /scratch/kocevski/999029/ft2_4FGL_J1254.9+1138_daily_bin1054.fits
Exposure map: /scratch/kocevski/999029/expmap_512524801_512784001_4FGL_J1254.9+1138_daily_bin1054.fits
Exposure cube: /scratch/kocevski/999029/ltcube_512524801_512784001_4FGL_J1254.9+1138_daily_bin1054.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/999029/Model_4FGL_J1254.9+1138_daily_bin1054.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6431.22345736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .98246       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5829       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.176       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .51163       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.3182       1.0000         .10000E-03   10000.    
    11 'Prefactor '    67.969       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8591       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4966       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75318       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=   6431.128     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     1733 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .98193        3.4004        .16153E-05   -.36769E-04
   2  Prefactor     .10000E-03    11.993        .89676E-07** at limit **
   3  norm          1.5817        3.2982        .83654E-06    .40753E-04
   4  Prefactor     15.176        15.302       -.46710E-06    .33894E-05
   5  norm          .10000E-03    19.133       -.81070E-07** at limit **
   6  Prefactor     .10000E-03    48.834        .41658E-07** at limit **
   7  norm          .51236        .47625       -.14478E-06   -.94606E-04
   8  Prefactor     .10000E-03    4.1248        .79078E-07** at limit **
   9  Prefactor     .10000E-03    25.731        .33702E-06** at limit **
  10  norm          3.3185        1.8722        .15609E-07   -.36946E-05
  11  Prefactor     67.905        47.330        .39817E-07   -.94321E-04
  12  Prefactor     .10000E-03    22.550        .98033E-07** at limit **
  13  Prefactor     6.8595        7.3124        .14588E-05   -.42944E-04
  14  Prefactor     .10000E-03    5.9690        .15879E-06** at limit **
  15  Prefactor     .10000E-03    3.7149        .76193E-07** at limit **
  16  Prefactor     .10000E-03    4.3319        .10606E-06** at limit **
  17  Prefactor     .10000E-03    10.920        .23032E-07** at limit **
  18  Prefactor     .10000E-03    23.645        .11229E-06** at limit **
  19  Normalizat    1.4963        .20007        .17371E-06   -.96357E-04
  20  Prefactor     .75343        .16206       -.98362E-06   -.25727E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.98193
  Prefactor  = 0.0001
  norm       = 1.58175
  Prefactor  = 15.1765
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.512357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.31854
  Prefactor  = 67.9047
  Prefactor  = 0.0001
  Prefactor  = 6.85949
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.49631
  Prefactor  = 0.753434
 **********
 **   18 **HESSE 
 **********

 FCN=   6431.128     FROM HESSE     STATUS=OK           287 CALLS     2020 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .98193        3.4106        .26328E-03   -1.5510    
   2  Prefactor     .10000E-03    11.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5817        3.2747        .19800E-03   -1.5456    
   4  Prefactor     15.176        15.302        .51406E-03   -1.4929    
   5  norm          .10000E-03    19.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    48.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .51236        .47713        .49915E-04   -1.5565    
   8  Prefactor     .10000E-03    4.1310        .15906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.3185        1.8635        .77493E-04   -1.5344    
  11  Prefactor     67.905        47.159        .24343E-03   -1.4058    
  12  Prefactor     .10000E-03    22.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.8595        7.3105        .76597E-03   -1.5184    
  14  Prefactor     .10000E-03    6.0057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7203        .15095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.3457        .16301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4963        .23770        .24911E-03   -.77882    
  20  Prefactor     .75343        .19168        .27605E-03   -1.0147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28944e-11
Minuit parameter uncertainties:
  1  3.41123
  2  1.83333e-05
  3  3.27507
  4  15.3062
  5  3.58977e-05
  6  4.41077e-06
  7  0.477131
  8  2.37669e-07
  9  2.25315e-05
  10  1.86348
  11  47.1847
  12  5.90061e-06
  13  7.31145
  14  2.95164e-06
  15  4.2339e-07
  16  1.49579e-06
  17  1.32711e-05
  18  7.09141e-06
  19  0.237876
  20  0.191846
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  2.952e-06  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.534e-01  1.918e-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.496e+00  2.379e-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: 8.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/999029/likelihoodResults_512524801_512784001_4FGL_J1254.9+1138_daily_bin1054.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) = 6431.12908346
delta logL = -0.000792573188846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6431.12829286
delta logL = -1.97093049792e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13372E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7477       1.0000          .0000       10.000    
     3 'Normalizat'    1.4964       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75337       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=   6430.894     FROM MIGRAD    STATUS=CONVERGED    134 CALLS      290 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8920        4.8149        .47709E-01    .25581E-03
   2  Index         1.4384        .50922        .28661       -.43597E-04
   3  Normalizat    1.5048        .23300        .24911E-03   -.12814E-03
   4  Prefactor     .74240        .19153        .27605E-03   -.14686E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.89204
  Index      = 1.43845
  Normalizat = 1.50482
  Prefactor  = 0.742404
 **********
 **   18 **HESSE 
 **********

 FCN=   6430.894     FROM HESSE     STATUS=OK            31 CALLS      321 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8920        4.6442        .26013E-02   -1.5433    
   2  Index         1.4384        .89904        .10845E-01   -.79279    
   3  Normalizat    1.5048        .23326        .49822E-04   -.77643    
   4  Prefactor     .74240        .19178        .11042E-04   -1.0189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1583e-11
Minuit parameter uncertainties:
  1  4.64504
  2  0.909172
  3  0.233425
  4  0.191952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999029': 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) = 6430.89412136
delta logL = 0.23416952858

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.892e+00  4.645e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  1.438e+00  9.092e-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.424e-01  1.920e-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.505e+00  2.334e-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/999029/cmap_HighResolution_512524801_512784001_4FGL_J1254.9+1138_daily_bin1054.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.75e-03', job_status='DONE', photon_flux_upper_limit='8.53e-08', time_completed='2021-09-06 09:56:01.198982', job_id='999029', GAL2='0.74', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1630947361.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='2.34e-01', ts2='0.47', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1054' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:56:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 999029: <4FGL_J1254.9+1138_daily_bin1054> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1054 193.733 11.6495 512524801 512784001 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 :                                   569.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             235.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            914 sec.

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

