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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1526
RA = 193.733, Dec = 11.6495
tmin = 634867201, tmax = 635126401
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='769', job_status='RUN', time_executed='2021-09-06 09:47:56.162647', time_epoch_executed='1630946876.16' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1526'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769/ft1_4FGL_J1254.9+1138_daily_bin1526.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769/ft2_4FGL_J1254.9+1138_daily_bin1526.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769/ft1_4FGL_J1254.9+1138_daily_bin1526.fits outfile=/scratch/kocevski/769/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1526.fits ra=193.733 dec=11.6495 rad=12.0 tmin=634867201.0 tmax=635126401.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.02
user 2.80
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769/ft1_filtered_4FGL_J1254.9+1138_daily_bin1526.fits" evtable="EVENTS" scfile=/scratch/kocevski/769/ft2_4FGL_J1254.9+1138_daily_bin1526.fits sctable="SC_DATA" outfile=/scratch/kocevski/769/ltcube_634867201_635126401_4FGL_J1254.9+1138_daily_bin1526.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/769/ft2_4FGL_J1254.9+1138_daily_bin1526.fits
.....................!
real 12.11
user 11.76
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769/ft1_filtered_4FGL_J1254.9+1138_daily_bin1526.fits evtable="EVENTS" scfile=/scratch/kocevski/769/ft2_4FGL_J1254.9+1138_daily_bin1526.fits sctable="SC_DATA" expcube=/scratch/kocevski/769/ltcube_634867201_635126401_4FGL_J1254.9+1138_daily_bin1526.fits outfile=/scratch/kocevski/769/expmap_634867201_635126401_4FGL_J1254.9+1138_daily_bin1526.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/769/ltcube_634867201_635126401_4FGL_J1254.9+1138_daily_bin1526.fits
.....................!
real 198.72
user 192.86
sys 5.33

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769/ft1_filtered_4FGL_J1254.9+1138_daily_bin1526.fits scfile=/scratch/kocevski/769/ft2_4FGL_J1254.9+1138_daily_bin1526.fits outfile=/scratch/kocevski/769/cmap_HighResolution_634867201_635126401_4FGL_J1254.9+1138_daily_bin1526.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 1.25
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1067       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    69.589       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .65936       1.0000         .10000E-03   10000.    
     8 'Prefactor '    64.087       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.8895       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10520E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10977E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.807       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .81802       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.8981       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.6267       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .53219       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=   3891.249     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2480 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0790        .42926E-07** at limit **
   2  Prefactor     .10000E-03    65.088        .29508E-05** at limit **
   3  norm          3.1383        14.318       -.18473E-05    .46552E-04
   4  Prefactor     .10000E-03    71.014       -.16105E-06** at limit **
   5  norm          69.269        199.15        .28219E-04    .15671E-04
   6  Prefactor     .10000E-03    190.16        .54418E-05** at limit **
   7  norm          .66181        1.5725       -.39813E-06    .24570E-03
   8  Prefactor     64.094        25.992        .16804E-06   -.15263E-04
   9  Prefactor     .10000E-03    55.623        .15146E-05** at limit **
  10  norm          8.8924        3.7544        .94204E-07    .19162E-03
  11  Prefactor     .10000E-03    167.10       -.47276E-05** at limit **
  12  Prefactor     .10000E-03    36.465        .36807E-06** at limit **
  13  Prefactor     .10000E-03    8.1549        .83474E-07** at limit **
  14  Prefactor     .10000E-03    6.5018        .32552E-07** at limit **
  15  Prefactor     38.807        23.728        .20478E-06   -.29775E-04
  16  Prefactor     .80983        16.400        .10279E-05   -.10442E-03
  17  Prefactor     .10000E-03    47.495       -.18820E-05** at limit **
  18  Prefactor     9.9207        40.749       -.30260E-05   -.91651E-05
  19  Normalizat    1.6264        .28168       -.17271E-05    .17966E-04
  20  Prefactor     .53243        .22089        .18647E-05   -.79900E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.13825
  Prefactor  = 0.0001
  norm       = 69.2694
  Prefactor  = 0.0001
  norm       = 0.661814
  Prefactor  = 64.0937
  Prefactor  = 0.0001
  norm       = 8.8924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.8066
  Prefactor  = 0.809825
  Prefactor  = 0.0001
  Prefactor  = 9.92072
  Normalizat = 1.62644
  Prefactor  = 0.53243
 **********
 **   18 **HESSE 
 **********

 FCN=   3891.249     FROM HESSE     STATUS=OK           293 CALLS     2773 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0917        .10690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    65.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1383        14.451        .11503E-02   -1.5354    
   4  Prefactor     .10000E-03    71.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          69.269        197.58        .24060E-03   -1.4041    
   6  Prefactor     .10000E-03    190.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .66181        1.4402        .88881E-03   -1.5545    
   8  Prefactor     64.094        25.975        .25064E-03   -1.4105    
   9  Prefactor     .10000E-03    55.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.8924        3.6932        .35687E-03   -1.5111    
  11  Prefactor     .10000E-03    169.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    36.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.829        .34473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.5093        .15532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     38.807        23.832        .64341E-04   -1.4461    
  16  Prefactor     .80983        64.934        .45948E-02   -1.5528    
  17  Prefactor     .10000E-03    48.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.9207        40.733        .12737E-03   -1.5078    
  19  Normalizat    1.6264        .32791        .24306E-03   -.74285    
  20  Prefactor     .53243        .25472        .32213E-03   -1.1051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53613e-10
Minuit parameter uncertainties:
  1  7.77009e-07
  2  0.000147375
  3  13.4737
  4  0.000105356
  5  199.496
  6  3.50032e-05
  7  1.44028
  8  25.9793
  9  1.04255e-05
  10  3.69325
  11  0.00026427
  12  3.97799e-06
  13  0.000100336
  14  1.69904e-07
  15  23.8383
  16  14.5185
  17  1.69179e-05
  18  40.2518
  19  0.328341
  20  0.255266
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  1.699e-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:  5.324e-01  2.553e-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.626e+00  3.283e-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.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/769/likelihoodResults_634867201_635126401_4FGL_J1254.9+1138_daily_bin1526.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) = 3891.24943695
delta logL = -0.000722687654616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3891.2487143
delta logL = -3.8419784687e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7782       1.0000          .0000       10.000    
     3 'Normalizat'    1.6265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53239       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3891.249     FROM MIGRAD    STATUS=FAILED        90 CALLS      247 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10200E-03    213.61        .15638E-02** at limit **
   2  Index         2.6670        7.6252        .50000        .12912E-04
   3  Normalizat    1.6264        .37864E-01    .24307E-03    .74834E-06
   4  Prefactor     .53243        .30559E-01    .32212E-03   -.73763E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3891.249     FROM SIMPLEX   STATUS=UNCHANGED    144 CALLS      391 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10200E-03    213.61        .42980E-03** at limit **
   2  Index         2.6670        7.6252        .11478E-03    .12912E-04
   3  Normalizat    1.6264        .37864E-01    .13735E-05    .74834E-06
   4  Prefactor     .53243        .30559E-01    .73067E-06   -.73763E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3891.249     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      434 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    191.57        .31275E-02** at limit **
   2  Index         2.3902        8.7868        .50000        .28422E-08
   3  Normalizat    1.6264        .34655E-01    .97228E-05    .27712E-04
   4  Prefactor     .53243        .27969E-01    .12885E-04    .18617E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.3902
  Normalizat = 1.62643
  Prefactor  = 0.532432
 **********
 **   18 **HESSE 
 **********

 FCN=   3891.249     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      463 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    776.09        .62550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3902        5.7592        .50000       -.54915    
   3  Normalizat    1.6264        .79887E-01    .19446E-05   -.74285    
   4  Prefactor     .53243        .64481E-01    .25770E-05   -1.1051    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.34376e-11
Minuit parameter uncertainties:
  1  7.94586e-05
  2  1671.52
  3  0.0798936
  4  0.0644899
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769': 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) = 3891.24871343
delta logL = 8.32625119074e-07

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  7.946e-05  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.390e+00  1.672e+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:  5.324e-01  6.449e-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.626e+00  7.989e-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/769/cmap_HighResolution_634867201_635126401_4FGL_J1254.9+1138_daily_bin1526.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.24e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-06 09:56:54.873458', job_id='769', GAL2='0.53', fit_tolerance='1e-08', EG2='1.63', EG='1.63', time_epoch_completed='1630947414.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='8.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1526' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:56:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 769: <4FGL_J1254.9+1138_daily_bin1526> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1526 193.733 11.6495 634867201 635126401 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 :                                   515.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            682 sec.

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

