/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 215 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 = 7482
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1254.9+1138_daily_bin350
RA = 193.733, Dec = 11.6495
tmin = 330048001, tmax = 330307201
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='994627', job_status='RUN', time_executed='2021-09-06 09:29:28.886324', time_epoch_executed='1630945768.89' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994627

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994627/ft1_4FGL_J1254.9+1138_daily_bin350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994627/ft2_4FGL_J1254.9+1138_daily_bin350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994627/ft1_4FGL_J1254.9+1138_daily_bin350.fits outfile=/scratch/kocevski/994627/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin350.fits ra=193.733 dec=11.6495 rad=12.0 tmin=330048001.0 tmax=330307201.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.51
user 3.28
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994627/ft1_filtered_4FGL_J1254.9+1138_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/994627/ft2_4FGL_J1254.9+1138_daily_bin350.fits sctable="SC_DATA" expcube=/scratch/kocevski/994627/ltcube_330048001_330307201_4FGL_J1254.9+1138_daily_bin350.fits outfile=/scratch/kocevski/994627/expmap_330048001_330307201_4FGL_J1254.9+1138_daily_bin350.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/994627/ltcube_330048001_330307201_4FGL_J1254.9+1138_daily_bin350.fits
.....................!
real 191.71
user 186.43
sys 4.94

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/994627/ft1_filtered_4FGL_J1254.9+1138_daily_bin350.fits scfile=/scratch/kocevski/994627/ft2_4FGL_J1254.9+1138_daily_bin350.fits outfile=/scratch/kocevski/994627/cmap_330048001_330307201_4FGL_J1254.9+1138_daily_bin350.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4623       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10549E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    21.661       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .27399       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10911E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.238       1.0000         .10000E-03   10000.    
    10 'norm      '    23.558       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.6527       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.469       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2103       1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.866       1.0000         .10000E-03   10000.    
    18 'Prefactor '    58.371       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2676       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85516       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=   7808.189     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2092 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4621        2.5318       -.10663E-06    .26886E-04
   2  Prefactor     .10000E-03    15.276       -.11182E-05** at limit **
   3  norm          .10000E-03    1.3384        .93377E-07** at limit **
   4  Prefactor     .10000E-03    16.421        .98286E-06** at limit **
   5  norm          21.647        27.479       -.51999E-05   -.21640E-04
   6  Prefactor     .10000E-03    55.479        .33232E-04** at limit **
   7  norm          .27392        .31591        .53163E-07    .42358E-03
   8  Prefactor     .10000E-03    8.1373       -.48605E-06** at limit **
   9  Prefactor     33.233        25.330       -.22449E-05    .23378E-04
  10  norm          23.557        2.9174        .11034E-06    .15729E-04
  11  Prefactor     8.5862        24.218       -.25198E-04   -.13630E-04
  12  Prefactor     .10000E-03    46.583       -.21881E-04** at limit **
  13  Prefactor     .10000E-03    9.1037       -.49945E-05** at limit **
  14  Prefactor     18.457        14.605       -.13385E-05    .11738E-03
  15  Prefactor     .10000E-03    9.2287        .45347E-05** at limit **
  16  Prefactor     8.2071        12.140       -.15278E-05   -.44196E-04
  17  Prefactor     31.856        39.855       -.11438E-04    .56957E-05
  18  Prefactor     58.371        43.860       -.42223E-06    .80151E-05
  19  Normalizat    1.2675        .19531        .11185E-05    .12131E-03
  20  Prefactor     .85528        .15877        .28665E-05    .32996E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.46207
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 21.6475
  Prefactor  = 0.0001
  norm       = 0.273916
  Prefactor  = 0.0001
  Prefactor  = 33.2333
  norm       = 23.5573
  Prefactor  = 8.58623
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.4566
  Prefactor  = 0.0001
  Prefactor  = 8.20706
  Prefactor  = 31.8558
  Prefactor  = 58.3714
  Normalizat = 1.26747
  Prefactor  = 0.855282
 **********
 **   18 **HESSE 
 **********

 FCN=   7808.189     FROM HESSE     STATUS=OK           297 CALLS     2389 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4621        2.5322        .11688E-03   -1.5336    
   2  Prefactor     .10000E-03    15.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.9870        .19199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          21.647        26.886        .86062E-04   -1.4777    
   6  Prefactor     .10000E-03    55.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .27392        .28814        .50882E-03   -1.5603    
   8  Prefactor     .10000E-03    8.1830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.233        25.334        .69505E-04   -1.4554    
  10  norm          23.557        2.9072        .50347E-04   -1.4737    
  11  Prefactor     8.5862        24.281        .13627E-03   -1.5122    
  12  Prefactor     .10000E-03    46.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.3813        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.457        14.686        .93196E-04   -1.4848    
  15  Prefactor     .10000E-03    9.2801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.2071        12.148        .13992E-03   -1.5135    
  17  Prefactor     31.856        39.884        .70981E-04   -1.4579    
  18  Prefactor     58.371        43.864        .52511E-04   -1.4178    
  19  Normalizat    1.2675        .23380        .28441E-03   -.84543    
  20  Prefactor     .85528        .18913        .28130E-03   -.97722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97838e-10
Minuit parameter uncertainties:
  1  2.53228
  2  1.63245e-05
  3  0.00013976
  4  2.5272e-05
  5  26.9015
  6  2.47396e-05
  7  0.288139
  8  1.98016e-06
  9  25.3418
  10  2.90723
  11  24.3089
  12  8.93325e-05
  13  1.07599e-05
  14  14.6885
  15  7.41687e-06
  16  12.1512
  17  39.9174
  18  43.8884
  19  0.233996
  20  0.189272
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.846e+01  1.469e+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:  8.553e-01  1.893e-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.267e+00  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 193.733 11.649
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 7.28e-08 +/- 5.79e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.30e-05

TS (Fixed Index): 2.10
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 1.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.45e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/994627/likelihoodResults_330048001_330307201_4FGL_J1254.9+1138_daily_bin350.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) = 7807.47566678
delta logL = 0.712894050244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7807.46260353
delta logL = 0.72595729981

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1483       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1117       1.0000          .0000       10.000    
     3 'Normalizat'    1.1990       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89970       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=   7807.463     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      288 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1544        124.22        .13467E-03    .75979E-05
   2  Index         4.1126        7.0561        .68562E-02    .20790E-04
   3  Normalizat    1.1990        .23595        .29109E-03   -.65848E-04
   4  Prefactor     .89977        .20604        .27486E-03    .79745E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.15444
  Index      = 4.11255
  Normalizat = 1.19901
  Prefactor  = 0.899772
 **********
 **   18 **HESSE 
 **********

 FCN=   7807.463     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1544        13.926        .53867E-05   -1.5173    
   2  Index         4.1126        1.5563        .27425E-03   -.17844    
   3  Normalizat    1.1990        .23679        .11644E-04   -.86633    
   4  Prefactor     .89977        .19229        .10994E-04   -.96149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.80171e-11
Minuit parameter uncertainties:
  1  13.9325
  2  1.5835
  3  0.237007
  4  0.192431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994627': 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) = 7807.46259723
delta logL = 0.725963605566

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  7.154e+00  1.393e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  4.113e+00  1.583e+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:  8.998e-01  1.924e-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.199e+00  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.72
Ra Dec: 193.733 11.649
Photon Index (Free Index): 4.11 +/- 1.58
Photon Flux (Free Index): 1.22e-07 +/- 7.64e-08
Energy Flux (Free Index): 1.80e-05 +/- 1.17e-05

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/994627/cmap_HighResolution_330048001_330307201_4FGL_J1254.9+1138_daily_bin350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-02', comment='SUCCESS', photon_flux='7.28e-08', energy_flux2='1.80e-05', photon_flux_error='5.79e-08', dlogl='7.26e-01', energy_flux='1.64e-05', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-06 09:40:44.057692', photon_index_error2='1.58', photon_index2='4.11', ts='2.10', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.84e-07', energy_flux_error2='1.17e-05', EG='1.27', time_epoch_completed='1630946444.06', return_code='0', job_id='994627', GAL2='0.90', EG2='1.20', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='7.64e-08', ts2='3.72', photon_index='2.79' WHERE bin_id='350' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:40:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 994627: <4FGL_J1254.9+1138_daily_bin350> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin350 193.733 11.6495 330048001 330307201 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 :                                   671.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

