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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin25
RA = 193.733, Dec = 11.6495
tmin = 245808001, tmax = 246067201
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='993114', job_status='RUN', time_executed='2021-09-06 09:23:36.233955', time_epoch_executed='1630945416.23' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='25'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993114

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993114/ft1_4FGL_J1254.9+1138_daily_bin25.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993114/ft2_4FGL_J1254.9+1138_daily_bin25.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993114/ft1_4FGL_J1254.9+1138_daily_bin25.fits outfile=/scratch/kocevski/993114/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin25.fits ra=193.733 dec=11.6495 rad=12.0 tmin=245808001.0 tmax=246067201.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.50
user 1.31
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993114/ft2_4FGL_J1254.9+1138_daily_bin25.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/993114/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin25.fits evtable="EVENTS" outfile="/scratch/kocevski/993114/ft1_filtered_4FGL_J1254.9+1138_daily_bin25.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993114/ft1_filtered_4FGL_J1254.9+1138_daily_bin25.fits evtable="EVENTS" scfile=/scratch/kocevski/993114/ft2_4FGL_J1254.9+1138_daily_bin25.fits sctable="SC_DATA" expcube=/scratch/kocevski/993114/ltcube_245808001_246067201_4FGL_J1254.9+1138_daily_bin25.fits outfile=/scratch/kocevski/993114/expmap_245808001_246067201_4FGL_J1254.9+1138_daily_bin25.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/993114/ltcube_245808001_246067201_4FGL_J1254.9+1138_daily_bin25.fits
.....................!
real 191.74
user 185.41
sys 4.82

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/993114/ft1_filtered_4FGL_J1254.9+1138_daily_bin25.fits scfile=/scratch/kocevski/993114/ft2_4FGL_J1254.9+1138_daily_bin25.fits outfile=/scratch/kocevski/993114/cmap_245808001_246067201_4FGL_J1254.9+1138_daily_bin25.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993114/ft1_filtered_4FGL_J1254.9+1138_daily_bin25.fits scfile=/scratch/kocevski/993114/ft2_4FGL_J1254.9+1138_daily_bin25.fits outfile=/scratch/kocevski/993114/cmap_HighResolution_245808001_246067201_4FGL_J1254.9+1138_daily_bin25.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.57
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7353       1.0000         .10000E-03   10000.    
     3 'norm      '    .29341E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.295       1.0000         .10000E-03   10000.    
     5 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10967E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.8284       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0751       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .60444E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1521       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25623E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .71098       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1581       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.157       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .77529       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4145       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=   10086.46     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2417 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .94622        .14779E-06** at limit **
   2  Prefactor     7.7363        14.411       -.26539E-07   -.34988E-04
   3  norm          .10000E-03    1.5440       -.87405E-06** at limit **
   4  Prefactor     27.275        28.875       -.76855E-06   -.11539E-03
   5  norm          .10000E-03    27.926       -.25943E-06** at limit **
   6  Prefactor     .10000E-03    42.608        .10685E-06** at limit **
   7  norm          9.8281        1.1275       -.66647E-08   -.50555E-03
   8  Prefactor     5.0761        6.2539       -.18929E-06    .74209E-07
   9  Prefactor     .10767E-03    83.310       -.17207E-04** at limit **
  10  norm          2.1513        1.5621       -.27380E-06   -.66334E-05
  11  Prefactor     .10000E-03    127.52       -.10662E-04** at limit **
  12  Prefactor     .10000E-03    21.301        .74125E-07** at limit **
  13  Prefactor     .10000E-03    2.2642        .62625E-07** at limit **
  14  Prefactor     .71966        33.315       -.11216E-04   -.44407E-03
  15  Prefactor     3.1643        11.253       -.11170E-05   -.32268E-03
  16  Prefactor     19.157        9.4990       -.26454E-07   -.15321E-03
  17  Prefactor     .10000E-03    30.219        .17548E-06** at limit **
  18  Prefactor     .10000E-03    11.037        .20700E-07** at limit **
  19  Normalizat    .77527        .17873        .24774E-06   -.36497E-03
  20  Prefactor     1.4145        .14947       -.47284E-06   -.60910E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.73633
  norm       = 0.000100002
  Prefactor  = 27.2753
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.82815
  Prefactor  = 5.07609
  Prefactor  = 0.000107674
  norm       = 2.15133
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.719664
  Prefactor  = 3.16435
  Prefactor  = 19.1572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.775269
  Prefactor  = 1.41448
 **********
 **   18 **HESSE 
 **********

 FCN=   10086.46     FROM HESSE     STATUS=OK           303 CALLS     2720 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9435        .19024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.7363        14.350        .14418E-03   -1.5152    
   3  norm          .10000E-03    15.654        .21590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.275        29.049        .76681E-04   -1.4663    
   5  norm          .10000E-03    27.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    42.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.8281        1.0965        .32959E-04   -1.5081    
   8  Prefactor     5.0761        6.2518        .17848E-03   -1.5257    
   9  Prefactor     .10767E-03    20.236        .11135       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1513        1.5461        .99786E-04   -1.5415    
  11  Prefactor     .10000E-03    125.21        .42910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2755        .14759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .71966        39.779        .47579E-02   -1.5538    
  15  Prefactor     3.1643        11.292        .22808E-03   -1.5352    
  16  Prefactor     19.157        9.5013        .91508E-04   -1.4832    
  17  Prefactor     .10000E-03    30.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .77527        .20778        .34685E-03   -1.0099    
  20  Prefactor     1.4145        .17675        .23571E-03   -.79964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96527e-09
Minuit parameter uncertainties:
  1  2.84429e-05
  2  14.3562
  3  0.000364063
  4  29.064
  5  1.98774e-05
  6  9.2925e-05
  7  1.09646
  8  6.25256
  9  0.0249312
  10  1.54611
  11  0.00136928
  12  1.78394e-05
  13  5.78446e-06
  14  10.7077
  15  11.2992
  16  9.50201
  17  5.03801e-05
  18  5.59869e-06
  19  0.207992
  20  0.176825
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  7.197e-01  1.071e+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.414e+00  1.768e-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:  7.753e-01  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 9.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993114/likelihoodResults_245808001_246067201_4FGL_J1254.9+1138_daily_bin25.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) = 10086.1928546
delta logL = 0.267016665923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10086.1347086
delta logL = 0.32516263164

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85022       1.0000         .10000E-03   10000.    
     2 'Index     '    4.8874       1.0000          .0000       10.000    
     3 'Normalizat'    .72574       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4410       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=   10086.13     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      334 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84840        17.638        .12626E-01    .19289E-02
   2  Index         4.8887        3.9979        .23657        .12874E-03
   3  Normalizat    .72580        .32603E-01    .80809E-01    .32248E-04
   4  Prefactor     1.4410        .29057E-01    .52911E-01   -.24577E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.848401
  Index      = 4.88868
  Normalizat = 0.725801
  Prefactor  = 1.44099
 **********
 **   18 **HESSE 
 **********

 FCN=   10086.13     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      367 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84840        66.549        .11328E-03   -1.5524    
   2  Index         4.8887        6.1168        .12498E-01   -.22265E-01
   3  Normalizat    .72580        .15988        .35782E-03   -1.0288    
   4  Prefactor     1.4410        .13993        .23391E-03   -.79206    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.87647e-06
Minuit parameter uncertainties:
  1  15.0444
  2  13.1528
  3  0.159979
  4  0.139962
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993114': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10086.1347084
delta logL = 0.325162794612

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  8.484e-01  1.504e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  4.889e+00  1.315e+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:  1.441e+00  1.400e-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:  7.258e-01  1.600e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/993114/cmap_HighResolution_245808001_246067201_4FGL_J1254.9+1138_daily_bin25.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.36e-03', job_status='DONE', photon_flux_upper_limit='9.30e-08', time_completed='2021-09-06 09:37:17.636771', job_id='993114', GAL2='1.44', fit_tolerance='1e-08', EG2='0.73', EG='0.78', time_epoch_completed='1630946237.64', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='3.25e-01', ts2='0.76', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='25' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:37:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 993114: <4FGL_J1254.9+1138_daily_bin25> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin25 193.733 11.6495 245808001 246067201 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 :                                   818.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

