/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 3 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7619
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1474
RA = 193.733, Dec = 11.6495
tmin = 621388801, tmax = 621648001
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='999702', job_status='RUN', time_executed='2021-09-06 09:42:10.609576', time_epoch_executed='1630946530.61' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1474'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999702

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999702/ft1_4FGL_J1254.9+1138_daily_bin1474.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999702/ft2_4FGL_J1254.9+1138_daily_bin1474.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999702/ft1_4FGL_J1254.9+1138_daily_bin1474.fits outfile=/scratch/kocevski/999702/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1474.fits ra=193.733 dec=11.6495 rad=12.0 tmin=621388801.0 tmax=621648001.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.25
user 3.02
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999702/ft1_filtered_4FGL_J1254.9+1138_daily_bin1474.fits evtable="EVENTS" scfile=/scratch/kocevski/999702/ft2_4FGL_J1254.9+1138_daily_bin1474.fits sctable="SC_DATA" expcube=/scratch/kocevski/999702/ltcube_621388801_621648001_4FGL_J1254.9+1138_daily_bin1474.fits outfile=/scratch/kocevski/999702/expmap_621388801_621648001_4FGL_J1254.9+1138_daily_bin1474.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/999702/ltcube_621388801_621648001_4FGL_J1254.9+1138_daily_bin1474.fits
.....................!
real 192.10
user 186.70
sys 4.96

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/999702/ft1_filtered_4FGL_J1254.9+1138_daily_bin1474.fits scfile=/scratch/kocevski/999702/ft2_4FGL_J1254.9+1138_daily_bin1474.fits outfile=/scratch/kocevski/999702/cmap_621388801_621648001_4FGL_J1254.9+1138_daily_bin1474.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.57
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999702/ft1_filtered_4FGL_J1254.9+1138_daily_bin1474.fits scfile=/scratch/kocevski/999702/ft2_4FGL_J1254.9+1138_daily_bin1474.fits outfile=/scratch/kocevski/999702/cmap_HighResolution_621388801_621648001_4FGL_J1254.9+1138_daily_bin1474.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1823       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.3802       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    51.635       1.0000         .10000E-03   10000.    
     5 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .81447       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.6109       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    60.942       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8779       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5382       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    59.803       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0226       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1175       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=   3857.077     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     2040 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1831        11.412        .36147E-05   -.76770E-04
   2  Prefactor     8.3955        106.16        .93433E-06    .99406E-05
   3  norm          .10000E-03    4.8688        .21481E-06** at limit **
   4  Prefactor     51.625        64.351       -.24227E-06   -.18642E-04
   5  norm          .10000E-03    99.813        .21056E-05** at limit **
   6  Prefactor     .10001E-03    142.47       -.16643E-05** at limit **
   7  norm          .81449        1.0028        .15163E-06    .30249E-04
   8  Prefactor     .10000E-03    8.1338       -.49106E-07** at limit **
   9  Prefactor     .10000E-03    45.869       -.37331E-06** at limit **
  10  norm          3.6111        2.8293        .75060E-07   -.58212E-04
  11  Prefactor     .10000E-03    19.829       -.18385E-07** at limit **
  12  Prefactor     60.954        55.759        .19691E-06    .23781E-04
  13  Prefactor     .10000E-03    2.7551       -.13486E-08** at limit **
  14  Prefactor     .10000E-03    5.7631        .46719E-07** at limit **
  15  Prefactor     6.8762        25.138        .73872E-06   -.58887E-05
  16  Prefactor     2.5383        17.849        .14024E-05   -.41350E-05
  17  Prefactor     .10000E-03    26.174        .63550E-07** at limit **
  18  Prefactor     59.809        77.731        .56304E-06    .32829E-05
  19  Normalizat    1.0224        .27916       -.13194E-05   -.57810E-05
  20  Prefactor     1.1178        .22086       -.35256E-10   -.48314E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.18307
  Prefactor  = 8.39549
  norm       = 0.0001
  Prefactor  = 51.625
  norm       = 0.000100004
  Prefactor  = 0.000100007
  norm       = 0.81449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.61108
  Prefactor  = 0.0001
  Prefactor  = 60.954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.87617
  Prefactor  = 2.53829
  Prefactor  = 0.0001
  Prefactor  = 59.8086
  Normalizat = 1.02235
  Prefactor  = 1.11777
 **********
 **   18 **HESSE 
 **********

 FCN=   3857.077     FROM HESSE     STATUS=OK           289 CALLS     2329 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1831        11.411        .74837E-03   -1.5172    
   2  Prefactor     8.3955        105.83        .13848E-03   -1.5128    
   3  norm          .10000E-03    4.9060        .13363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     51.625        64.343        .55813E-04   -1.4270    
   5  norm          .10000E-03    100.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    142.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .81449        .95437        .64416E-03   -1.5527    
   8  Prefactor     .10000E-03    8.1403        .17300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    46.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6111        2.8035        .85427E-04   -1.5328    
  11  Prefactor     .10000E-03    19.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     60.954        55.765        .25699E-03   -1.4145    
  13  Prefactor     .10000E-03    2.7559        .10068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.7669        .14558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8762        25.206        .15298E-03   -1.5183    
  16  Prefactor     2.5383        17.792        .25635E-03   -1.5389    
  17  Prefactor     .10000E-03    26.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     59.809        77.831        .51882E-04   -1.4160    
  19  Normalizat    1.0224        .34004        .29573E-03   -.92285    
  20  Prefactor     1.1178        .27078        .23459E-03   -.88901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27975e-10
Minuit parameter uncertainties:
  1  11.4148
  2  59.7446
  3  6.05988e-06
  4  64.4295
  5  0.00127793
  6  0.00199671
  7  0.954385
  8  4.23789e-06
  9  0.000166628
  10  2.80361
  11  4.12782e-06
  12  55.8133
  13  4.89895e-07
  14  8.2439e-07
  15  25.2454
  16  13.4458
  17  3.14073e-05
  18  77.9641
  19  0.340765
  20  0.271112
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  8.244e-07  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.118e+00  2.711e-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.022e+00  3.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/999702/likelihoodResults_621388801_621648001_4FGL_J1254.9+1138_daily_bin1474.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) = 3857.07798921
delta logL = -0.000819734228571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3857.07716945
delta logL = 2.58019099419e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7810       1.0000          .0000       10.000    
     3 'Normalizat'    1.0224       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1178       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=   3857.077     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      260 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.038        .14619E-01** at limit **
   2  Index         2.3114        6.0568        .50000        .35709E-07
   3  Normalizat    1.0224        .20941E-01    .29573E-03    .25488E-04
   4  Prefactor     1.1178        .17377E-01    .23459E-03    .43470E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.31142
  Normalizat = 1.02235
  Prefactor  = 1.11777
 **********
 **   18 **HESSE 
 **********

 FCN=   3857.077     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    533.77        .15372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3114        8.5355        .50000       -.56773    
   3  Normalizat    1.0224        .67202E-01    .11829E-04   -.92285    
   4  Prefactor     1.1178        .55765E-01    .93837E-05   -.88901    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.97863e-10
Minuit parameter uncertainties:
  1  0.000340882
  2  1472.17
  3  0.0672075
  4  0.0557682
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999702': 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) = 3857.07716858
delta logL = 8.98616235645e-07

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  3.409e-04  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.311e+00  1.472e+03  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.118e+00  5.577e-02  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.022e+00  6.721e-02  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/999702/cmap_HighResolution_621388801_621648001_4FGL_J1254.9+1138_daily_bin1474.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.82e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-06 09:50:40.779893', job_id='999702', GAL2='1.12', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630947040.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='8.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1474' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:50:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 999702: <4FGL_J1254.9+1138_daily_bin1474> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin1474> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 09:41:49 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:41:50 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:50 2021
Terminated at Mon Sep  6 09:50:41 2021
Results reported at Mon Sep  6 09:50:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1474 193.733 11.6495 621388801 621648001 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 :                                   475.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   531 sec.
    Turnaround time :                            532 sec.

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

