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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1031
RA = 193.733, Dec = 11.6495
tmin = 506563201, tmax = 506822401
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='998993', job_status='RUN', time_executed='2021-09-06 09:43:41.902467', time_epoch_executed='1630946621.9' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1031'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998993

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998993/ft1_4FGL_J1254.9+1138_daily_bin1031.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998993/ft2_4FGL_J1254.9+1138_daily_bin1031.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998993/ft1_4FGL_J1254.9+1138_daily_bin1031.fits outfile=/scratch/kocevski/998993/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1031.fits ra=193.733 dec=11.6495 rad=12.0 tmin=506563201.0 tmax=506822401.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.41
user 3.19
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998993/ft1_filtered_4FGL_J1254.9+1138_daily_bin1031.fits evtable="EVENTS" scfile=/scratch/kocevski/998993/ft2_4FGL_J1254.9+1138_daily_bin1031.fits sctable="SC_DATA" expcube=/scratch/kocevski/998993/ltcube_506563201_506822401_4FGL_J1254.9+1138_daily_bin1031.fits outfile=/scratch/kocevski/998993/expmap_506563201_506822401_4FGL_J1254.9+1138_daily_bin1031.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/998993/ltcube_506563201_506822401_4FGL_J1254.9+1138_daily_bin1031.fits
.....................!
real 190.58
user 185.56
sys 4.58

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/998993/ft1_filtered_4FGL_J1254.9+1138_daily_bin1031.fits scfile=/scratch/kocevski/998993/ft2_4FGL_J1254.9+1138_daily_bin1031.fits outfile=/scratch/kocevski/998993/cmap_506563201_506822401_4FGL_J1254.9+1138_daily_bin1031.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.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9700       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4472       1.0000         .10000E-03   10000.    
     3 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    96.992       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .48173       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.374       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.5204       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.878       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9910       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.6711       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1725       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1422       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .24416E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.278       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92177       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0792       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=   5663.210     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     2341 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9700        3.4742        .12581E-03    .87475E-04
   2  Prefactor     7.4474        16.674        .14696E-03    .51133E-04
   3  norm          .10000E-03    2.4250        .11308E-02** at limit **
   4  Prefactor     .10000E-03    9.9433        .18142E-02** at limit **
   5  norm          97.003        50.223        .20407E-03    .10246E-03
   6  Prefactor     .10000E-03    45.523        .18142E-02** at limit **
   7  norm          .48158        .53862        .57617E-03   -.11263E-02
   8  Prefactor     21.376        11.868        .86637E-04    .63381E-04
   9  Prefactor     .10000E-03    8.3991        .18142E-02** at limit **
  10  norm          3.5207        2.0775        .77428E-04    .10721E-02
  11  Prefactor     12.883        29.216        .11162E-03   -.16296E-05
  12  Prefactor     .10000E-03    22.907        .18142E-02** at limit **
  13  Prefactor     3.9911        5.7560        .20189E-03    .42629E-04
  14  Prefactor     9.6638        11.380        .12886E-03    .48347E-04
  15  Prefactor     2.1900        16.194        .27937E-03    .41834E-04
  16  Prefactor     4.1416        11.752        .19805E-03    .28816E-04
  17  Prefactor     .10000E-03    37.423        .12528    ** at limit **
  18  Prefactor     43.287        42.515        .60940E-04   -.52348E-04
  19  Normalizat    .92175        .24128        .27518E-03    .26334E-03
  20  Prefactor     1.0792        .20819        .22962E-03    .19001E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.97003
  Prefactor  = 7.4474
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 97.0032
  Prefactor  = 0.0001
  norm       = 0.48158
  Prefactor  = 21.3761
  Prefactor  = 0.0001
  norm       = 3.52075
  Prefactor  = 12.8827
  Prefactor  = 0.0001
  Prefactor  = 3.99108
  Prefactor  = 9.66376
  Prefactor  = 2.19001
  Prefactor  = 4.14157
  Prefactor  = 0.000100002
  Prefactor  = 43.2872
  Normalizat = 0.921753
  Prefactor  = 1.07915
 **********
 **   18 **HESSE 
 **********

 FCN=   5663.210     FROM HESSE     STATUS=OK           283 CALLS     2624 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9700        3.4741        .50322E-05   -1.5309    
   2  Prefactor     7.4474        16.674        .58786E-05   -1.5162    
   3  norm          .10000E-03    2.4256        .22616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.9435        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          97.003        50.214        .40814E-04   -1.3735    
   6  Prefactor     .10000E-03    45.523        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .48158        .53815        .23047E-04   -1.5569    
   8  Prefactor     21.376        11.868        .34655E-05   -1.4783    
   9  Prefactor     .10000E-03    8.3994        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.5207        2.0767        .30971E-05   -1.5333    
  11  Prefactor     12.883        29.216        .44649E-05   -1.4990    
  12  Prefactor     .10000E-03    22.908        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.9911        5.7559        .80754E-05   -1.5308    
  14  Prefactor     9.6638        11.378        .51544E-05   -1.5086    
  15  Prefactor     2.1900        16.179        .11175E-04   -1.5412    
  16  Prefactor     4.1416        11.751        .79220E-05   -1.5301    
  17  Prefactor     .10000E-03    36.463        .12758       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     43.287        42.515        .12188E-04   -1.4391    
  19  Normalizat    .92175        .24147        .11007E-04   -.95700    
  20  Prefactor     1.0792        .20838        .45924E-04   -.90136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52121e-10
Minuit parameter uncertainties:
  1  3.47429
  2  16.6845
  3  7.06491e-05
  4  9.63137e-06
  5  50.2358
  6  0.000182895
  7  0.538156
  8  11.8696
  9  1.23883e-05
  10  2.07678
  11  29.2484
  12  2.7946e-05
  13  5.7567
  14  11.3804
  15  11.9092
  16  11.7574
  17  0.000473061
  18  42.5446
  19  0.241754
  20  0.20854
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  9.664e+00  1.138e+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.079e+00  2.085e-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.218e-01  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 193.733 11.649
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 3.81e-08 +/- 4.48e-08
Energy Flux (Fixed Index): 8.58e-06 +/- 1.01e-05

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

Saving results to:
/scratch/kocevski/998993/likelihoodResults_506563201_506822401_4FGL_J1254.9+1138_daily_bin1031.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) = 5663.19040561
delta logL = 0.0199662238574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5663.18026045
delta logL = 0.0301113868463

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8322       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0932       1.0000          .0000       10.000    
     3 'Normalizat'    .91376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0853       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=   5663.180     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      253 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8215        15.424        .71639E-03   -.86186E-04
   2  Index         3.0943        1.6045        .11548E-01   -.10712E-04
   3  Normalizat    .91379        .23494        .27626E-03   -.24321E-04
   4  Prefactor     1.0852        .20895        .22907E-03   -.11514E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.82148
  Index      = 3.09426
  Normalizat = 0.91379
  Prefactor  = 1.08522
 **********
 **   18 **HESSE 
 **********

 FCN=   5663.180     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8215        12.995        .28656E-04   -1.5149    
   2  Index         3.0943        1.3589        .46193E-03   -.39104    
   3  Normalizat    .91379        .23500        .11050E-04   -.95977    
   4  Prefactor     1.0852        .20864        .91627E-05   -.89940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57073e-11
Minuit parameter uncertainties:
  1  13.0001
  2  1.37931
  3  0.235261
  4  0.208792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998993': 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) = 5663.18026004
delta logL = 0.0301118008629

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  7.821e+00  1.300e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  3.094e+00  1.379e+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:  1.085e+00  2.088e-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.138e-01  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 193.733 11.649
Photon Index (Free Index): 3.09 +/- 1.38
Photon Flux (Free Index): 4.19e-08 +/- 4.83e-08
Energy Flux (Free Index): 8.01e-06 +/- 9.52e-06

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/998993/cmap_HighResolution_506563201_506822401_4FGL_J1254.9+1138_daily_bin1031.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='3.81e-08', energy_flux2='8.01e-06', photon_flux_error='4.48e-08', dlogl='3.01e-02', energy_flux='8.58e-06', photon_flux2='4.19e-08', job_status='DONE', time_completed='2021-09-06 09:55:05.949827', photon_index_error2='1.38', photon_index2='3.09', ts='1.03', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='9.52e-06', EG='0.92', time_epoch_completed='1630947305.95', return_code='0', job_id='998993', GAL2='1.09', EG2='0.91', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='4.83e-08', ts2='1.10', photon_index='2.79' WHERE bin_id='1031' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:55:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 998993: <4FGL_J1254.9+1138_daily_bin1031> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1031 193.733 11.6495 506563201 506822401 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 :                                   584.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            862 sec.

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

