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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1388
RA = 193.733, Dec = 11.6495
tmin = 599097601, tmax = 599356801
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='999566', job_status='RUN', time_executed='2021-09-06 09:45:16.670777', time_epoch_executed='1630946716.67' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999566

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999566/ft1_4FGL_J1254.9+1138_daily_bin1388.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999566/ft2_4FGL_J1254.9+1138_daily_bin1388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999566/ft1_4FGL_J1254.9+1138_daily_bin1388.fits outfile=/scratch/kocevski/999566/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1388.fits ra=193.733 dec=11.6495 rad=12.0 tmin=599097601.0 tmax=599356801.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 2.85
user 2.63
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999566/ft1_filtered_4FGL_J1254.9+1138_daily_bin1388.fits" evtable="EVENTS" scfile=/scratch/kocevski/999566/ft2_4FGL_J1254.9+1138_daily_bin1388.fits sctable="SC_DATA" outfile=/scratch/kocevski/999566/ltcube_599097601_599356801_4FGL_J1254.9+1138_daily_bin1388.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/999566/ft2_4FGL_J1254.9+1138_daily_bin1388.fits
.....................!
real 12.14
user 11.69
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999566/ft1_filtered_4FGL_J1254.9+1138_daily_bin1388.fits evtable="EVENTS" scfile=/scratch/kocevski/999566/ft2_4FGL_J1254.9+1138_daily_bin1388.fits sctable="SC_DATA" expcube=/scratch/kocevski/999566/ltcube_599097601_599356801_4FGL_J1254.9+1138_daily_bin1388.fits outfile=/scratch/kocevski/999566/expmap_599097601_599356801_4FGL_J1254.9+1138_daily_bin1388.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/999566/ltcube_599097601_599356801_4FGL_J1254.9+1138_daily_bin1388.fits
.....................!
real 191.95
user 186.39
sys 5.23

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/999566/ft1_filtered_4FGL_J1254.9+1138_daily_bin1388.fits scfile=/scratch/kocevski/999566/ft2_4FGL_J1254.9+1138_daily_bin1388.fits outfile=/scratch/kocevski/999566/cmap_599097601_599356801_4FGL_J1254.9+1138_daily_bin1388.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999566/ft1_filtered_4FGL_J1254.9+1138_daily_bin1388.fits scfile=/scratch/kocevski/999566/ft2_4FGL_J1254.9+1138_daily_bin1388.fits outfile=/scratch/kocevski/999566/cmap_HighResolution_599097601_599356801_4FGL_J1254.9+1138_daily_bin1388.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/999566/ft1_filtered_4FGL_J1254.9+1138_daily_bin1388.fits evtable="EVENTS" scfile=/scratch/kocevski/999566/ft2_4FGL_J1254.9+1138_daily_bin1388.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/999566/Model_4FGL_J1254.9+1138_daily_bin1388.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/999566/ft1_filtered_4FGL_J1254.9+1138_daily_bin1388.fits.....................!
real 65.84
user 64.48
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .21253       1.0000         .10000E-03   10000.    
     3 'norm      '    10.427       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    21.076       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .42237       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14486       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.0425       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10920E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10702E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7978       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10888E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .87999       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0898       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=   8370.395     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     1832 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0660        .13325E-07** at limit **
   2  Prefactor     .34607        10.819        .13470E-06   -.23476E-04
   3  norm          10.423        3.9999       -.39103E-06   -.57534E-03
   4  Prefactor     .10000E-03    5.8691       -.71147E-08** at limit **
   5  norm          21.075        35.965        .69595E-05    .35390E-04
   6  Prefactor     .10000E-03    28.211       -.35092E-06** at limit **
   7  norm          .42253        .47882       -.92416E-07   -.61742E-03
   8  Prefactor     .23727        3.6886       -.31387E-06    .15593E-03
   9  Prefactor     .10000E-03    22.189       -.89730E-06** at limit **
  10  norm          4.0428        1.5317        .74777E-08    .73776E-05
  11  Prefactor     .10000E-03    7.7811       -.11270E-07** at limit **
  12  Prefactor     .10000E-03    26.086        .44299E-05** at limit **
  13  Prefactor     .10000E-03    4.8884       -.21210E-07** at limit **
  14  Prefactor     3.8043        4.1776        .76701E-06   -.98115E-03
  15  Prefactor     .10000E-03    4.7555       -.42047E-07** at limit **
  16  Prefactor     .10000E-03    2.2671        .14449E-07** at limit **
  17  Prefactor     .10000E-03    16.156       -.47153E-07** at limit **
  18  Prefactor     .10000E-03    33.200       -.65210E-05** at limit **
  19  Normalizat    .88012        .15581        .11867E-06    .27974E-04
  20  Prefactor     1.0895        .13744       -.23854E-06    .72759E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.346072
  norm       = 10.423
  Prefactor  = 0.0001
  norm       = 21.0749
  Prefactor  = 0.0001
  norm       = 0.422528
  Prefactor  = 0.237266
  Prefactor  = 0.0001
  norm       = 4.04277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.80435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.880116
  Prefactor  = 1.08951
 **********
 **   18 **HESSE 
 **********

 FCN=   8370.395     FROM HESSE     STATUS=OK           299 CALLS     2131 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1015        .18444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .34607        178.92        .57249E-02   -1.5590    
   3  norm          10.423        4.0157        .47906E-03   -1.5062    
   4  Prefactor     .10000E-03    5.8714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          21.075        36.282        .87247E-04   -1.4789    
   6  Prefactor     .10000E-03    28.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .42253        .44728        .60908E-03   -1.5578    
   8  Prefactor     .23727        38.679        .33695E-02   -1.5611    
   9  Prefactor     .10000E-03    22.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.0428        1.5221        .65708E-04   -1.5306    
  11  Prefactor     .10000E-03    7.7855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    36.238        .38708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.8043        9.3806        .10357E-02   -1.5318    
  15  Prefactor     .10000E-03    4.7889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.2780        .13452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    33.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .88012        .18205        .26812E-03   -.97162    
  20  Prefactor     1.0895        .15945        .21823E-03   -.89803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16192e-08
Minuit parameter uncertainties:
  1  2.69702e-07
  2  15.7832
  3  4.01583
  4  6.56749e-07
  5  36.3204
  6  5.26956e-06
  7  0.447279
  8  6.06147
  9  4.40305e-06
  10  1.5221
  11  6.46965e-07
  12  5.69135e-05
  13  0.000206903
  14  9.38421
  15  2.35508e-06
  16  1.49725e-07
  17  1.48365e-07
  18  0.000108213
  19  0.182173
  20  0.15952
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  3.804e+00  9.384e+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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.090e+00  1.595e-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:  8.801e-01  1.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/999566/likelihoodResults_599097601_599356801_4FGL_J1254.9+1138_daily_bin1388.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) = 8370.06557938
delta logL = 0.329875517491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8370.05946056
delta logL = 0.33599433525

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6693       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2731       1.0000          .0000       10.000    
     3 'Normalizat'    .85120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1064       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=   8370.059     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      241 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6582        45.662        .81578E-02    .10139E-02
   2  Index         4.2794        7.0823        .20365        .12253E-03
   3  Normalizat    .85117        .38745E-01    .44275E-01    .26807E-04
   4  Prefactor     1.1065        .34944E-01    .37348E-01    .10649E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.65822
  Index      = 4.27938
  Normalizat = 0.851175
  Prefactor  = 1.1065
 **********
 **   18 **HESSE 
 **********

 FCN=   8370.059     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      274 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6582        112.73        .13199E-03   -1.5450    
   2  Index         4.2794        5.8818        .11822E-01   -.14463    
   3  Normalizat    .85117        .15531        .27224E-03   -.98198    
   4  Prefactor     1.1065        .13820        .21676E-03   -.89259    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.50691e-06
Minuit parameter uncertainties:
  1  27.3977
  2  12.2558
  3  0.155395
  4  0.138246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999566': 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) = 8370.05945648
delta logL = 0.335998409299

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.658e+00  2.740e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  4.279e+00  1.226e+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.106e+00  1.382e-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:  8.512e-01  1.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
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/999566/cmap_HighResolution_599097601_599356801_4FGL_J1254.9+1138_daily_bin1388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.44e-03', job_status='DONE', photon_flux_upper_limit='9.40e-08', time_completed='2021-09-06 09:57:40.907930', job_id='999566', GAL2='1.11', fit_tolerance='1e-08', EG2='0.85', EG='0.88', time_epoch_completed='1630947460.91', return_code2='102', ts='0.20', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.36e-01', ts2='0.95', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1388' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:57:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 999566: <4FGL_J1254.9+1138_daily_bin1388> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin1388> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 09:41:37 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:41:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 09:41:39 2021
Terminated at Mon Sep  6 09:57:41 2021
Results reported at Mon Sep  6 09:57:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1388 193.733 11.6495 599097601 599356801 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 :                                   663.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             223.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                22
    Run time :                                   962 sec.
    Turnaround time :                            964 sec.

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

