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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1522
RA = 193.733, Dec = 11.6495
tmin = 633830401, tmax = 634089601
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='763', job_status='RUN', time_executed='2021-09-06 09:49:15.815199', time_epoch_executed='1630946955.82' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1522'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763/ft1_4FGL_J1254.9+1138_daily_bin1522.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763/ft2_4FGL_J1254.9+1138_daily_bin1522.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763/ft1_4FGL_J1254.9+1138_daily_bin1522.fits outfile=/scratch/kocevski/763/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1522.fits ra=193.733 dec=11.6495 rad=12.0 tmin=633830401.0 tmax=634089601.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.77
user 3.41
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/763/ft2_4FGL_J1254.9+1138_daily_bin1522.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/763/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1522.fits evtable="EVENTS" outfile="/scratch/kocevski/763/ft1_filtered_4FGL_J1254.9+1138_daily_bin1522.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763/ft1_filtered_4FGL_J1254.9+1138_daily_bin1522.fits evtable="EVENTS" scfile=/scratch/kocevski/763/ft2_4FGL_J1254.9+1138_daily_bin1522.fits sctable="SC_DATA" expcube=/scratch/kocevski/763/ltcube_633830401_634089601_4FGL_J1254.9+1138_daily_bin1522.fits outfile=/scratch/kocevski/763/expmap_633830401_634089601_4FGL_J1254.9+1138_daily_bin1522.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/763/ltcube_633830401_634089601_4FGL_J1254.9+1138_daily_bin1522.fits
.....................!
real 190.86
user 184.70
sys 5.69

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/763/ft1_filtered_4FGL_J1254.9+1138_daily_bin1522.fits scfile=/scratch/kocevski/763/ft2_4FGL_J1254.9+1138_daily_bin1522.fits outfile=/scratch/kocevski/763/cmap_633830401_634089601_4FGL_J1254.9+1138_daily_bin1522.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.56
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41484       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .46956E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.727       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    61.656       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.1112       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2821       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14555E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2025       1.0000         .10000E-03   10000.    
    11 'Prefactor '    111.61       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0187       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4509       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9735       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.649       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17953E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0531       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0608       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=   6520.957     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2133 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41457        2.4819       -.65885E-05    .37174E-03
   2  Prefactor     .10001E-03    193.26       -.63819E-05** at limit **
   3  norm          12.723        6.0168       -.69770E-06    .81827E-03
   4  Prefactor     .10000E-03    33.082       -.71346E-06** at limit **
   5  norm          61.624        50.287        .10953E-05    .24385E-03
   6  Prefactor     .10002E-03    90.438        .30711E-05** at limit **
   7  norm          3.1112        1.0217       -.80914E-08    .16905E-02
   8  Prefactor     3.2833        8.1700       -.14156E-05    .33625E-03
   9  Prefactor     .10001E-03    147.21        .85390E-04** at limit **
  10  norm          1.2024        1.9490       -.13811E-05   -.74469E-04
  11  Prefactor     111.59        59.018       -.43956E-07    .32597E-03
  12  Prefactor     .10000E-03    13.725        .11619E-05** at limit **
  13  Prefactor     6.0195        5.0078       -.36882E-06    .83189E-04
  14  Prefactor     3.4475        9.4230       -.24703E-05    .36224E-03
  15  Prefactor     .10000E-03    3.7238        .37668E-06** at limit **
  16  Prefactor     7.9752        11.173       -.85451E-06   -.87986E-04
  17  Prefactor     14.651        36.839       -.63125E-06   -.39418E-04
  18  Prefactor     .10007E-03    338.87        .53072E-04** at limit **
  19  Normalizat    1.0531        .19974        .43071E-05    .69187E-03
  20  Prefactor     1.0608        .16988        .32543E-05    .50461E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.414572
  Prefactor  = 0.000100008
  norm       = 12.7231
  Prefactor  = 0.0001
  norm       = 61.6241
  Prefactor  = 0.000100019
  norm       = 3.11121
  Prefactor  = 3.28328
  Prefactor  = 0.000100011
  norm       = 1.20244
  Prefactor  = 111.586
  Prefactor  = 0.0001
  Prefactor  = 6.01948
  Prefactor  = 3.44751
  Prefactor  = 0.0001
  Prefactor  = 7.97522
  Prefactor  = 14.6514
  Prefactor  = 0.000100074
  Normalizat = 1.05314
  Prefactor  = 1.06082
 **********
 **   18 **HESSE 
 **********

 FCN=   6520.957     FROM HESSE     STATUS=OK           293 CALLS     2426 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41457        2.5134        .24699E-03   -1.5579    
   2  Prefactor     .10001E-03    197.34        .42376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.723        6.0027        .11228E-03   -1.4994    
   4  Prefactor     .10000E-03    33.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          61.624        50.404        .25551E-03   -1.4136    
   6  Prefactor     .10002E-03    90.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.1112        1.0187        .41849E-04   -1.5355    
   8  Prefactor     3.2833        8.0029        .22350E-03   -1.5346    
   9  Prefactor     .10001E-03    142.10        .62203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2024        1.9229        .13170E-03   -1.5489    
  11  Prefactor     111.59        58.944        .38075E-04   -1.3591    
  12  Prefactor     .10000E-03    13.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.0195        5.0053        .16038E-03   -1.5217    
  14  Prefactor     3.4475        9.4600        .21771E-03   -1.5337    
  15  Prefactor     .10000E-03    3.7323        .15214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.9752        11.193        .14199E-03   -1.5143    
  17  Prefactor     14.651        36.829        .10465E-03   -1.4942    
  18  Prefactor     .10007E-03    344.39        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0531        .23358        .28265E-03   -.91271    
  20  Prefactor     1.0608        .19756        .24512E-03   -.90729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33513e-09
Minuit parameter uncertainties:
  1  2.04145
  2  0.00250417
  3  6.00299
  4  0.000194199
  5  50.4386
  6  0.00263201
  7  1.01875
  8  8.00547
  9  0.00250224
  10  1.92305
  11  58.9745
  12  1.12992e-05
  13  5.00562
  14  9.46407
  15  2.67659e-05
  16  11.1958
  17  36.8859
  18  0.0101307
  19  0.233811
  20  0.197692
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  3.448e+00  9.464e+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:  1.061e+00  1.977e-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.053e+00  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/763/likelihoodResults_633830401_634089601_4FGL_J1254.9+1138_daily_bin1522.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) = 6520.44061351
delta logL = 0.516701594391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6520.43034193
delta logL = 0.526973176777

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9362       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4093       1.0000          .0000       10.000    
     3 'Normalizat'    1.0738       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0454       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=   6520.430     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      218 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9362        4.0174        .59261E-02    .49019E-02
   2  Index         1.4093        .44745        .20338       -.74306E-04
   3  Normalizat    1.0738        .19121        .63322E-01    .10487E-04
   4  Prefactor     1.0454        .16715        .40189E-01    .95416E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.93617
  Index      = 1.40934
  Normalizat = 1.07377
  Prefactor  = 1.04535
 **********
 **   18 **HESSE 
 **********

 FCN=   6520.430     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9362        5.7439        .18185E-03   -1.5365    
   2  Index         1.4093        .75974        .10009E-01   -.80111    
   3  Normalizat    1.0738        .22275        .28009E-03   -.90598    
   4  Prefactor     1.0454        .19487        .24649E-03   -.91233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41418e-08
Minuit parameter uncertainties:
  1  5.745
  2  0.765912
  3  0.222946
  4  0.194999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763': 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) = 6520.43034192
delta logL = 0.526973191758

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  2.936e+00  5.745e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  1.409e+00  7.659e-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.045e+00  1.950e-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.074e+00  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 193.733 11.649
Photon Index (Free Index): 1.41 +/- 0.77
Photon Flux (Free Index): 5.79e-09 +/- 9.88e-09
Energy Flux (Free Index): 2.48e-05 +/- 4.99e-05

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/763/cmap_HighResolution_633830401_634089601_4FGL_J1254.9+1138_daily_bin1522.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.09e-03', comment='SUCCESS', energy_flux2='2.48e-05', dlogl='5.27e-01', photon_flux2='5.79e-09', job_status='DONE', time_completed='2021-09-06 09:59:43.676574', photon_index_error2='0.77', photon_index2='1.41', ts='0.16', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='4.99e-05', EG='1.05', time_epoch_completed='1630947583.68', return_code='0', job_id='763', GAL2='1.05', EG2='1.07', return_code2='0', photon_flux_error2='9.88e-09', ts2='1.21', photon_index='2.79' WHERE bin_id='1522' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:59:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 763: <4FGL_J1254.9+1138_daily_bin1522> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin1522> 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) <bullet0082>, 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 09:59:45 2021
Results reported at Mon Sep  6 09:59:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1522 193.733 11.6495 633830401 634089601 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 :                                   619.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            853 sec.

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

