/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 154 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 = 7445
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1254.9+1138_daily_bin65
RA = 193.733, Dec = 11.6495
tmin = 256176001, tmax = 256435201
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='993168', job_status='RUN', time_executed='2021-09-06 09:23:45.888028', time_epoch_executed='1630945425.89' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='65'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993168

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993168/ft1_4FGL_J1254.9+1138_daily_bin65.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993168/ft2_4FGL_J1254.9+1138_daily_bin65.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993168/ft1_4FGL_J1254.9+1138_daily_bin65.fits outfile=/scratch/kocevski/993168/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin65.fits ra=193.733 dec=11.6495 rad=12.0 tmin=256176001.0 tmax=256435201.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 1.44
user 1.27
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993168/ft1_filtered_4FGL_J1254.9+1138_daily_bin65.fits" evtable="EVENTS" scfile=/scratch/kocevski/993168/ft2_4FGL_J1254.9+1138_daily_bin65.fits sctable="SC_DATA" outfile=/scratch/kocevski/993168/ltcube_256176001_256435201_4FGL_J1254.9+1138_daily_bin65.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/993168/ft2_4FGL_J1254.9+1138_daily_bin65.fits
.....................!
real 12.53
user 11.98
sys 0.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993168/ft1_filtered_4FGL_J1254.9+1138_daily_bin65.fits evtable="EVENTS" scfile=/scratch/kocevski/993168/ft2_4FGL_J1254.9+1138_daily_bin65.fits sctable="SC_DATA" expcube=/scratch/kocevski/993168/ltcube_256176001_256435201_4FGL_J1254.9+1138_daily_bin65.fits outfile=/scratch/kocevski/993168/expmap_256176001_256435201_4FGL_J1254.9+1138_daily_bin65.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/993168/ltcube_256176001_256435201_4FGL_J1254.9+1138_daily_bin65.fits
.....................!
real 190.56
user 184.09
sys 5.84

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/993168/ft1_filtered_4FGL_J1254.9+1138_daily_bin65.fits scfile=/scratch/kocevski/993168/ft2_4FGL_J1254.9+1138_daily_bin65.fits outfile=/scratch/kocevski/993168/cmap_256176001_256435201_4FGL_J1254.9+1138_daily_bin65.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993168/ft1_filtered_4FGL_J1254.9+1138_daily_bin65.fits scfile=/scratch/kocevski/993168/ft2_4FGL_J1254.9+1138_daily_bin65.fits outfile=/scratch/kocevski/993168/cmap_HighResolution_256176001_256435201_4FGL_J1254.9+1138_daily_bin65.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10341       1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.641       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .27797E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .16292E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .41396E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.4677       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10370E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21598E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.6966       1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.547       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10591E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2769       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .32668       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.076       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .28371       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.959       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12774E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .95367       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93878       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=   9136.426     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2100 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97367E-01    .87604       -.11667E-06   -.32574E-03
   2  Prefactor     42.559        24.710        .15492E-04   -.87745E-05
   3  norm          .10000E-03    .60509       -.17515E-06** at limit **
   4  Prefactor     .10000E-03    4.9957       -.18731E-06** at limit **
   5  norm          .10000E-03    6.7050        .53251E-07** at limit **
   6  Prefactor     .10000E-03    23.159        .20089E-04** at limit **
   7  norm          2.4675        .60519       -.15579E-06   -.48253E-03
   8  Prefactor     .10000E-03    2.5563        .25002E-07** at limit **
   9  Prefactor     .10000E-03    12.441        .67070E-05** at limit **
  10  norm          5.6961        1.5310       -.14742E-06   -.38742E-03
  11  Prefactor     36.688        33.408        .20962E-04   -.10956E-04
  12  Prefactor     .10000E-03    11.379       -.15748E-05** at limit **
  13  Prefactor     8.2756        6.2440        .14540E-05   -.15600E-03
  14  Prefactor     .23212        4.9206        .88112E-06   -.18894E-03
  15  Prefactor     18.115        12.956        .11820E-06   -.27975E-03
  16  Prefactor     .28174        3.8260       -.17254E-06   -.36890E-03
  17  Prefactor     14.998        15.767        .86957E-05   -.78951E-05
  18  Prefactor     .10000E-03    13.667       -.73724E-05** at limit **
  19  Normalizat    .95372        .15933       -.22215E-05   -.27300E-03
  20  Prefactor     .93889        .13236       -.16502E-05   -.24515E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0973668
  Prefactor  = 42.5587
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.46748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.69605
  Prefactor  = 36.6876
  Prefactor  = 0.0001
  Prefactor  = 8.27556
  Prefactor  = 0.232124
  Prefactor  = 18.1153
  Prefactor  = 0.281745
  Prefactor  = 14.9981
  Prefactor  = 0.0001
  Normalizat = 0.953715
  Prefactor  = 0.938892
 **********
 **   18 **HESSE 
 **********

 FCN=   9136.426     FROM HESSE     STATUS=OK           299 CALLS     2399 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97367E-01    5.2594        .17313E-02   -1.5646    
   2  Prefactor     42.559        24.695        .61391E-04   -1.4402    
   3  norm          .10000E-03    .60859        .72592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9969        .20866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.7062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.145        .21248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.4675        .60546        .35039E-04   -1.5394    
   8  Prefactor     .10000E-03    2.5633        .14924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.6961        1.5314        .58237E-04   -1.5231    
  11  Prefactor     36.688        33.393        .66293E-04   -1.4496    
  12  Prefactor     .10000E-03    11.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.2756        6.2446        .13935E-03   -1.5133    
  14  Prefactor     .23212        91.455        .38217E-02   -1.5612    
  15  Prefactor     18.115        13.039        .94204E-04   -1.4856    
  16  Prefactor     .28174        20.556        .36003E-02   -1.5602    
  17  Prefactor     14.998        15.770        .10356E-03   -1.4933    
  18  Prefactor     .10000E-03    13.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .95372        .18555        .27048E-03   -.94598    
  20  Prefactor     .93889        .15595        .23477E-03   -.94795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41891e-08
Minuit parameter uncertainties:
  1  1.43061
  2  24.7008
  3  1.33638e-05
  4  6.81296e-06
  5  8.92013e-06
  6  1.86305e-05
  7  0.605461
  8  5.71737e-06
  9  3.4461e-05
  10  1.53143
  11  33.41
  12  1.03064e-05
  13  6.24507
  14  9.22717
  15  13.0411
  16  4.81393
  17  15.7744
  18  1.69633e-05
  19  0.185676
  20  0.156027
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.389e-01  1.560e-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:  9.537e-01  1.857e-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: 8.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993168/likelihoodResults_256176001_256435201_4FGL_J1254.9+1138_daily_bin65.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) = 9136.41565719
delta logL = 0.0102507936572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9136.35445283
delta logL = 0.0714551449983

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1053       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1493       1.0000          .0000       10.000    
     3 'Normalizat'    .95450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93361       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9136.354     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      285 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0997        8.9420        .11506E-02    .20472E-03
   2  Index         2.1494        1.1219        .13368E-01    .83953E-05
   3  Normalizat    .95440        .17709        .27040E-03   -.29179E-04
   4  Prefactor     .93371        .15373        .23534E-03   -.30144E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.09969
  Index      = 2.14944
  Normalizat = 0.954401
  Prefactor  = 0.933706
 **********
 **   18 **HESSE 
 **********

 FCN=   9136.354     FROM HESSE     STATUS=OK            27 CALLS      312 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0997        9.0410        .23012E-03   -1.5356    
   2  Index         2.1494        1.1351        .53474E-03   -.60664    
   3  Normalizat    .95440        .17727        .10816E-04   -.94574    
   4  Prefactor     .93371        .15385        .94135E-05   -.94973    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30076e-11
Minuit parameter uncertainties:
  1  9.04502
  2  1.15002
  3  0.177378
  4  0.153925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993168': 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) = 9136.35445242
delta logL = 0.0714555594986

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  3.100e+00  9.045e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.149e+00  1.150e+00  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.337e-01  1.539e-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:  9.544e-01  1.774e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/993168/cmap_HighResolution_256176001_256435201_4FGL_J1254.9+1138_daily_bin65.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.78e-03', job_status='DONE', photon_flux_upper_limit='8.57e-08', time_completed='2021-09-06 09:35:45.611139', job_id='993168', GAL2='0.93', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630946145.61', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='7.15e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='65' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:35:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 993168: <4FGL_J1254.9+1138_daily_bin65> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin65> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 09:20:59 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:21:01 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:21:01 2021
Terminated at Mon Sep  6 09:35:46 2021
Results reported at Mon Sep  6 09:35:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin65 193.733 11.6495 256176001 256435201 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 :                                   717.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            887 sec.

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

