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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1518
RA = 193.733, Dec = 11.6495
tmin = 632793601, tmax = 633052801
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='757', job_status='RUN', time_executed='2021-09-06 09:49:10.295951', time_epoch_executed='1630946950.3' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1518'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757/ft1_4FGL_J1254.9+1138_daily_bin1518.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757/ft2_4FGL_J1254.9+1138_daily_bin1518.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757/ft1_4FGL_J1254.9+1138_daily_bin1518.fits outfile=/scratch/kocevski/757/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1518.fits ra=193.733 dec=11.6495 rad=12.0 tmin=632793601.0 tmax=633052801.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.90
user 3.49
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/757/ft1_filtered_4FGL_J1254.9+1138_daily_bin1518.fits" evtable="EVENTS" scfile=/scratch/kocevski/757/ft2_4FGL_J1254.9+1138_daily_bin1518.fits sctable="SC_DATA" outfile=/scratch/kocevski/757/ltcube_632793601_633052801_4FGL_J1254.9+1138_daily_bin1518.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/757/ft2_4FGL_J1254.9+1138_daily_bin1518.fits
.....................!
real 12.76
user 12.22
sys 0.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757/ft1_filtered_4FGL_J1254.9+1138_daily_bin1518.fits evtable="EVENTS" scfile=/scratch/kocevski/757/ft2_4FGL_J1254.9+1138_daily_bin1518.fits sctable="SC_DATA" expcube=/scratch/kocevski/757/ltcube_632793601_633052801_4FGL_J1254.9+1138_daily_bin1518.fits outfile=/scratch/kocevski/757/expmap_632793601_633052801_4FGL_J1254.9+1138_daily_bin1518.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/757/ltcube_632793601_633052801_4FGL_J1254.9+1138_daily_bin1518.fits
.....................!
real 191.22
user 186.26
sys 4.50

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/757/ft1_filtered_4FGL_J1254.9+1138_daily_bin1518.fits scfile=/scratch/kocevski/757/ft2_4FGL_J1254.9+1138_daily_bin1518.fits outfile=/scratch/kocevski/757/cmap_632793601_633052801_4FGL_J1254.9+1138_daily_bin1518.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757/ft1_filtered_4FGL_J1254.9+1138_daily_bin1518.fits scfile=/scratch/kocevski/757/ft2_4FGL_J1254.9+1138_daily_bin1518.fits outfile=/scratch/kocevski/757/cmap_HighResolution_632793601_633052801_4FGL_J1254.9+1138_daily_bin1518.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=193.733 yref=11.6495 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .27459E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    112.45       1.0000         .10000E-03   10000.    
     6 'Prefactor '    71.424       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8197       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.195       1.0000         .10000E-03   10000.    
    10 'norm      '    2.8339       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6405       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .61800E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4545       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7103       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29598E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9123       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1341       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0482       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=   7775.818     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     2068 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .70332       -.20001E-08** at limit **
   2  Prefactor     .10000E-03    8.7426        .50434E-09** at limit **
   3  norm          .10000E-03    3.4065       -.30268E-06** at limit **
   4  Prefactor     .10000E-03    70.115        .12971E-05** at limit **
   5  norm          112.37        46.942       -.23573E-05   -.57305E-03
   6  Prefactor     71.392        75.885       -.17240E-05   -.69608E-04
   7  norm          1.8187        .70095       -.90164E-07   -.53026E-02
   8  Prefactor     .10000E-03    3.2046       -.65342E-08** at limit **
   9  Prefactor     11.195        17.121       -.18027E-06   -.38518E-04
  10  norm          2.8338        1.5399       -.66391E-07   -.12413E-02
  11  Prefactor     3.5933        47.657       -.10462E-05   -.15855E-04
  12  Prefactor     .10000E-03    21.781       -.80467E-06** at limit **
  13  Prefactor     .59300E-01    4.4581        .96046E-06   -.16124E-03
  14  Prefactor     3.4558        10.434       -.13103E-05   -.46092E-04
  15  Prefactor     6.7108        12.614       -.53961E-06   -.76270E-04
  16  Prefactor     .10005E-03    26.437        .70807E-05** at limit **
  17  Prefactor     2.9118        40.030       -.15933E-06   -.40479E-05
  18  Prefactor     .10000E-03    16.538        .49525E-07** at limit **
  19  Normalizat    1.1341        .18340       -.42056E-06   -.61896E-03
  20  Prefactor     1.0481        .15516        .52888E-06   -.55922E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.000100001
  norm       = 112.367
  Prefactor  = 71.3924
  norm       = 1.81874
  Prefactor  = 0.0001
  Prefactor  = 11.1954
  norm       = 2.83379
  Prefactor  = 3.59326
  Prefactor  = 0.0001
  Prefactor  = 0.0592999
  Prefactor  = 3.45576
  Prefactor  = 6.71076
  Prefactor  = 0.000100051
  Prefactor  = 2.91178
  Prefactor  = 0.0001
  Normalizat = 1.13409
  Prefactor  = 1.0481
 **********
 **   18 **HESSE 
 **********

 FCN=   7775.818     FROM HESSE     STATUS=OK           301 CALLS     2369 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .70610        .72214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.7537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.4235        .24354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    71.120        .21427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          112.37        48.393        .18968E-03   -1.3584    
   6  Prefactor     71.392        76.072        .23751E-03   -1.4016    
   7  norm          1.8187        .69760        .41982E-04   -1.5438    
   8  Prefactor     .10000E-03    3.2091        .15412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.195        17.112        .11974E-03   -1.5039    
  10  norm          2.8338        1.5320        .76014E-04   -1.5371    
  11  Prefactor     3.5933        47.558        .21173E-03   -1.5329    
  12  Prefactor     .10000E-03    21.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .59300E-01    4.6059        .57004E-01   -1.5659    
  14  Prefactor     3.4558        10.426        .10880E-02   -1.5336    
  15  Prefactor     6.7108        12.526        .77450E-03   -1.5190    
  16  Prefactor     .10005E-03    36.192        .41532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.9118        40.090        .23808E-03   -1.5367    
  18  Prefactor     .10000E-03    16.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1341        .21594        .27291E-03   -.88665    
  20  Prefactor     1.0481        .18262        .24267E-03   -.91143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52431e-09
Minuit parameter uncertainties:
  1  1.16486e-07
  2  3.01913e-06
  3  0.000263541
  4  0.000506151
  5  48.4096
  6  76.1763
  7  0.697606
  8  1.82241e-07
  9  17.1193
  10  1.53205
  11  26.1699
  12  7.50216e-05
  13  1.04444
  14  10.4316
  15  12.5306
  16  0.00270553
  17  21.6259
  18  3.39164e-06
  19  0.21611
  20  0.182726
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  3.456e+00  1.043e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.048e+00  1.827e-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.134e+00  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/757/likelihoodResults_632793601_633052801_4FGL_J1254.9+1138_daily_bin1518.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) = 7775.73748336
delta logL = 0.0807535381045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7775.7342177
delta logL = 0.0840191983707

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1448       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3127       1.0000          .0000       10.000    
     3 'Normalizat'    1.1382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0419       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=   7775.734     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      324 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1430        12.309        .16196E-03    .12635E-05
   2  Index         2.3127        .93616        .12593E-01   -.63222E-04
   3  Normalizat    1.1382        .21038        .27246E-03   -.80114E-05
   4  Prefactor     1.0419        .18176        .24327E-03    .40657E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.14303
  Index      = 2.31272
  Normalizat = 1.1382
  Prefactor  = 1.04188
 **********
 **   18 **HESSE 
 **********

 FCN=   7775.734     FROM HESSE     STATUS=OK            25 CALLS      349 TOTAL
                     EDM=   .83E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1430        12.256        .64782E-05   -1.5212    
   2  Index         2.3127        .93254        .25186E-02   -.56742    
   3  Normalizat    1.1382        .21061        .10898E-04   -.88535    
   4  Prefactor     1.0419        .18191        .97309E-05   -.91346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.26124e-13
Minuit parameter uncertainties:
  1  12.2606
  2  0.940313
  3  0.210765
  4  0.182015
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757': 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): 0
logL (Free Index) = 7775.73421769
delta logL = 0.0840192108826

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  6.143e+00  1.226e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.313e+00  9.403e-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.042e+00  1.820e-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.138e+00  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/757/cmap_HighResolution_632793601_633052801_4FGL_J1254.9+1138_daily_bin1518.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.54e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-06 10:00:23.280855', job_id='757', GAL2='1.04', fit_tolerance='1e-08', EG2='1.14', EG='1.13', time_epoch_completed='1630947623.28', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='8.40e-02', ts2='0.31', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1518' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 10:00:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 757: <4FGL_J1254.9+1138_daily_bin1518> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin1518> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 09:45:32 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:45:34 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:34 2021
Terminated at Mon Sep  6 10:00:23 2021
Results reported at Mon Sep  6 10:00:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1518 193.733 11.6495 632793601 633052801 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.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            891 sec.

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

