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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin588
RA = 193.733, Dec = 11.6495
tmin = 391737601, tmax = 391996801
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='995963', job_status='RUN', time_executed='2021-09-06 09:31:14.314198', time_epoch_executed='1630945874.31' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995963

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995963/ft1_4FGL_J1254.9+1138_daily_bin588.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995963/ft2_4FGL_J1254.9+1138_daily_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995963/ft1_4FGL_J1254.9+1138_daily_bin588.fits outfile=/scratch/kocevski/995963/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin588.fits ra=193.733 dec=11.6495 rad=12.0 tmin=391737601.0 tmax=391996801.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.35
user 3.08
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995963/ft1_filtered_4FGL_J1254.9+1138_daily_bin588.fits" evtable="EVENTS" scfile=/scratch/kocevski/995963/ft2_4FGL_J1254.9+1138_daily_bin588.fits sctable="SC_DATA" outfile=/scratch/kocevski/995963/ltcube_391737601_391996801_4FGL_J1254.9+1138_daily_bin588.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/995963/ft2_4FGL_J1254.9+1138_daily_bin588.fits
.....................!
real 11.54
user 11.22
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995963/ft1_filtered_4FGL_J1254.9+1138_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/995963/ft2_4FGL_J1254.9+1138_daily_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/995963/ltcube_391737601_391996801_4FGL_J1254.9+1138_daily_bin588.fits outfile=/scratch/kocevski/995963/expmap_391737601_391996801_4FGL_J1254.9+1138_daily_bin588.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/995963/ltcube_391737601_391996801_4FGL_J1254.9+1138_daily_bin588.fits
.....................!
real 189.87
user 185.63
sys 3.79

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/995963/ft1_filtered_4FGL_J1254.9+1138_daily_bin588.fits scfile=/scratch/kocevski/995963/ft2_4FGL_J1254.9+1138_daily_bin588.fits outfile=/scratch/kocevski/995963/cmap_391737601_391996801_4FGL_J1254.9+1138_daily_bin588.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=193.733 yref=11.6495 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/995963/ft1_filtered_4FGL_J1254.9+1138_daily_bin588.fits scfile=/scratch/kocevski/995963/ft2_4FGL_J1254.9+1138_daily_bin588.fits outfile=/scratch/kocevski/995963/cmap_HighResolution_391737601_391996801_4FGL_J1254.9+1138_daily_bin588.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4153       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .40472       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    48.595       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4856       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.647       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.445       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13919E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8492       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1517       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1374       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96171       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=   6149.469     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2087 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4161        2.6096       -.51028E-06   -.37412E-03
   2  Prefactor     .10000E-03    7.2733        .47037E-06** at limit **
   3  norm          .40577        2.3105        .68407E-05   -.41323E-03
   4  Prefactor     .10000E-03    14.845        .20363E-05** at limit **
   5  norm          .10000E-03    32.211       -.59014E-05** at limit **
   6  Prefactor     48.352        123.44       -.30693E-03   -.10595E-03
   7  norm          1.4854        .70955       -.33983E-08   -.58846E-02
   8  Prefactor     15.673        13.347       -.22157E-05   -.73587E-04
   9  Prefactor     17.313        31.376        .51042E-05   -.53160E-05
  10  norm          .10000E-03    .68300        .52872E-06** at limit **
  11  Prefactor     .10000E-03    8.5444       -.25574E-06** at limit **
  12  Prefactor     .10000E-03    36.520        .15469E-04** at limit **
  13  Prefactor     .10000E-03    2.5949        .13540E-07** at limit **
  14  Prefactor     .10005E-03    5.8909       -.13042E-05** at limit **
  15  Prefactor     1.8504        10.757       -.83692E-05   -.31648E-03
  16  Prefactor     7.1510        9.6570       -.71604E-06   -.54952E-04
  17  Prefactor     .10000E-03    61.692       -.19693E-04** at limit **
  18  Prefactor     .10000E-03    68.705        .15920E-04** at limit **
  19  Normalizat    1.1369        .19430        .43949E-05   -.60076E-03
  20  Prefactor     .96223        .16493        .20302E-05   -.27656E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.41608
  Prefactor  = 0.0001
  norm       = 0.405772
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 48.3516
  norm       = 1.48542
  Prefactor  = 15.6728
  Prefactor  = 17.3132
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100053
  Prefactor  = 1.85045
  Prefactor  = 7.15101
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.13687
  Prefactor  = 0.962233
 **********
 **   18 **HESSE 
 **********

 FCN=   6149.469     FROM HESSE     STATUS=OK           293 CALLS     2380 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4161        2.5997        .12738E-03   -1.5397    
   2  Prefactor     .10000E-03    7.2745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .40577        4.0229        .21489E-02   -1.5581    
   4  Prefactor     .10000E-03    14.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    32.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     48.352        123.51        .28762E-03   -1.4316    
   7  norm          1.4854        .68754        .41704E-04   -1.5464    
   8  Prefactor     15.673        13.314        .10125E-03   -1.4916    
   9  Prefactor     17.313        31.395        .95893E-04   -1.4876    
  10  norm          .10000E-03    1.5646        .12503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.5473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    36.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.5997        .12336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10005E-03    41.700        .35937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.8504        10.523        .30662E-03   -1.5436    
  16  Prefactor     7.1510        9.6523        .15000E-03   -1.5173    
  17  Prefactor     .10000E-03    62.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    69.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1369        .22920        .25672E-03   -.88577    
  20  Prefactor     .96223        .19629        .24176E-03   -.93999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16665e-09
Minuit parameter uncertainties:
  1  2.59982
  2  4.38576e-05
  3  2.5552
  4  0.000497677
  5  8.94604e-06
  6  124.172
  7  0.687548
  8  13.3161
  9  31.4244
  10  6.04967e-05
  11  8.44943e-06
  12  5.44259e-05
  13  1.1139e-05
  14  0.00297699
  15  8.8277
  16  9.65445
  17  0.000276861
  18  0.000381566
  19  0.229403
  20  0.196438
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.001e-04  2.977e-03  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:  9.622e-01  1.964e-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.137e+00  2.294e-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: 9.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/995963/likelihoodResults_391737601_391996801_4FGL_J1254.9+1138_daily_bin588.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) = 6149.46882871
delta logL = -0.000113123368465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6149.46871597
delta logL = -3.82209691452e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33533E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1264       1.0000          .0000       10.000    
     3 'Normalizat'    1.1367       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96238       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=   6149.468     FROM MIGRAD    STATUS=CONVERGED    148 CALLS      356 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12870        9.1497        .80398E-01    .16794E-03
   2  Index         3.4102        6.6355        .50000        .96184E-05
   3  Normalizat    1.1357        .84196E-02    .58076E-01   -.63753E-04
   4  Prefactor     .96268        .73984E-02    .45795E-01   -.29424E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.128696
  Index      = 3.41017
  Normalizat = 1.13575
  Prefactor  = 0.962677
 **********
 **   18 **HESSE 
 **********

 FCN=   6149.468     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      389 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12870        8677.6        .26141E-02   -1.5636    
   2  Index         3.4102        6.2858        .64102E-01   -.32358    
   3  Normalizat    1.1357        .21169        .25684E-03   -.88612    
   4  Prefactor     .96268        .10132        .24171E-03   -.93984    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.84557e-06
Minuit parameter uncertainties:
  1  74.1756
  2  116.671
  3  0.211853
  4  0.101344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995963': 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) = 6149.46846863
delta logL = 0.000246955285547

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.287e-01  7.418e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  3.410e+00  1.167e+02  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:  9.627e-01  1.013e-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.136e+00  2.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.733 11.649

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/995963/cmap_HighResolution_391737601_391996801_4FGL_J1254.9+1138_daily_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-03', job_status='DONE', photon_flux_upper_limit='9.01e-08', time_completed='2021-09-06 09:41:15.980571', job_id='995963', GAL2='0.96', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630946475.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.47e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='588' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:41:16 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin588 193.733 11.6495 391737601 391996801 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 :                                   593.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   616 sec.
    Turnaround time :                            618 sec.

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

