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


Performing analysis on: 4FGL_J2250.7-2806_daily_bin642
RA = 342.69, Dec = -28.1114
tmin = 405734401, tmax = 405993601
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='520791', job_status='RUN', time_executed='2021-09-28 23:00:59.314493', time_epoch_executed='1632895259.31' WHERE source_name='4FGL J2250.7-2806' and cadence='daily' and bin_id='642'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/520791

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/520791/ft1_4FGL_J2250.7-2806_daily_bin642.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/520791/ft2_4FGL_J2250.7-2806_daily_bin642.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/520791/ft1_4FGL_J2250.7-2806_daily_bin642.fits outfile=/scratch/kocevski/520791/ft1_filteredMKT_4FGL_J2250.7-2806_daily_bin642.fits ra=342.69 dec=-28.1114 rad=12.0 tmin=405734401.0 tmax=405993601.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.58
user 3.37
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/520791/ft2_4FGL_J2250.7-2806_daily_bin642.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/520791/ft2_4FGL_J2250.7-2806_daily_bin642.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/520791/ft1_filteredMKT_4FGL_J2250.7-2806_daily_bin642.fits evtable="EVENTS" outfile="/scratch/kocevski/520791/ft1_filtered_4FGL_J2250.7-2806_daily_bin642.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/520791/ft1_filtered_4FGL_J2250.7-2806_daily_bin642.fits" evtable="EVENTS" scfile=/scratch/kocevski/520791/ft2_4FGL_J2250.7-2806_daily_bin642.fits sctable="SC_DATA" outfile=/scratch/kocevski/520791/ltcube_405734401_405993601_4FGL_J2250.7-2806_daily_bin642.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/520791/ft2_4FGL_J2250.7-2806_daily_bin642.fits
.....................!
real 11.75
user 11.39
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/520791/ft1_filtered_4FGL_J2250.7-2806_daily_bin642.fits evtable="EVENTS" scfile=/scratch/kocevski/520791/ft2_4FGL_J2250.7-2806_daily_bin642.fits sctable="SC_DATA" expcube=/scratch/kocevski/520791/ltcube_405734401_405993601_4FGL_J2250.7-2806_daily_bin642.fits outfile=/scratch/kocevski/520791/expmap_405734401_405993601_4FGL_J2250.7-2806_daily_bin642.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/520791/ltcube_405734401_405993601_4FGL_J2250.7-2806_daily_bin642.fits
.....................!
real 194.49
user 189.32
sys 4.86

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 172 point sources and 0 extended sources

Setting source of interest to:
4FGL J2250.7-2806 @ 342.69 -28.1114

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/520791/ft1_filtered_4FGL_J2250.7-2806_daily_bin642.fits scfile=/scratch/kocevski/520791/ft2_4FGL_J2250.7-2806_daily_bin642.fits outfile=/scratch/kocevski/520791/cmap_405734401_405993601_4FGL_J2250.7-2806_daily_bin642.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=342.69 yref=-28.1114 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/520791/ft1_filtered_4FGL_J2250.7-2806_daily_bin642.fits scfile=/scratch/kocevski/520791/ft2_4FGL_J2250.7-2806_daily_bin642.fits outfile=/scratch/kocevski/520791/cmap_HighResolution_405734401_405993601_4FGL_J2250.7-2806_daily_bin642.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=342.69 yref=-28.1114 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/520791/ft1_filtered_4FGL_J2250.7-2806_daily_bin642.fits evtable="EVENTS" scfile=/scratch/kocevski/520791/ft2_4FGL_J2250.7-2806_daily_bin642.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/520791/Model_4FGL_J2250.7-2806_daily_bin642.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/520791/ft1_filtered_4FGL_J2250.7-2806_daily_bin642.fits.....................!
real 50.85
user 49.56
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/520791/ft1_filtered_4FGL_J2250.7-2806_daily_bin642.fits', '/scratch/kocevski/520791/ft2_4FGL_J2250.7-2806_daily_bin642.fits', expMap='/scratch/kocevski/520791/expmap_405734401_405993601_4FGL_J2250.7-2806_daily_bin642.fits', expCube='/scratch/kocevski/520791/ltcube_405734401_405993601_4FGL_J2250.7-2806_daily_bin642.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/520791/Model_4FGL_J2250.7-2806_daily_bin642.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2250.7-2806'

4FGL J2250.7-2806
   Spectrum: LogParabola
311         norm:  4.101e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  2.049e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
313         beta:  9.524e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  8.845e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/520791/ft1_filtered_4FGL_J2250.7-2806_daily_bin642.fits
Spacecraft file(s): /scratch/kocevski/520791/ft2_4FGL_J2250.7-2806_daily_bin642.fits
Exposure map: /scratch/kocevski/520791/expmap_405734401_405993601_4FGL_J2250.7-2806_daily_bin642.fits
Exposure cube: /scratch/kocevski/520791/ltcube_405734401_405993601_4FGL_J2250.7-2806_daily_bin642.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/520791/Model_4FGL_J2250.7-2806_daily_bin642.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) = 6714.0950518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90615       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.7401       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    34.675       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.132       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.507       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10457E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.496       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .52438       1.0000         .10000E-03   10000.    
    12 'norm      '    3.8844       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1653       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5574       1.0000         .10000E-03   10000.    
    15 'norm      '    .21747       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .65165E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.175       1.0000         .10000E-03   10000.    
    20 'norm      '    4.6614       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0445       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .63725       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6714.036     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2407 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90616        .30700        .50391E-08   -.23308E-04
   2  Prefactor     9.7407        9.4146        .23149E-06   -.28375E-04
   3  Prefactor     .10000E-03    24.968        .38810E-06** at limit **
   4  Prefactor     .10000E-03    1.2075       -.10630E-07** at limit **
   5  norm          34.675        20.281       -.27512E-06   -.19452E-03
   6  Prefactor     17.132        13.198        .66912E-07   -.10956E-04
   7  Prefactor     12.509        9.9536       -.68115E-08   -.21224E-03
   8  Prefactor     .10000E-03    6.7386       -.23376E-07** at limit **
   9  norm          .10000E-03    1.1565        .94006E-06** at limit **
  10  Prefactor     11.474        30.301       -.14088E-05   -.85433E-04
  11  Prefactor     .51926        3.5679       -.61276E-06   -.84205E-04
  12  norm          3.8847        3.1907       -.20693E-06   -.29068E-03
  13  Prefactor     7.1658        12.380       -.17541E-05   -.24015E-03
  14  Prefactor     3.5643        7.8288        .32038E-05   -.48376E-03
  15  norm          .21674        .44368       -.44718E-06   -.22448E-02
  16  Prefactor     .10000E-03    17.317       -.13395E-06** at limit **
  17  Prefactor     .10000E-03    8.5728       -.14393E-05** at limit **
  18  norm          .10000E-03    1.8948       -.13347E-07** at limit **
  19  Prefactor     13.174        24.577        .28697E-06    .38539E-05
  20  norm          4.6612        2.8215        .61477E-07   -.78559E-04
  21  Prefactor     .10000E-03    41.545        .69366E-06** at limit **
  22  Prefactor     .10000E-03    36.295       -.13202E-05** at limit **
  23  Normalizat    1.0446        .15247       -.11292E-05   -.27802E-03
  24  Prefactor     .63726        .14153        .79845E-06   -.35073E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.906156
  Prefactor  = 9.74071
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 34.6749
  Prefactor  = 17.1316
  Prefactor  = 12.5085
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.4739
  Prefactor  = 0.519256
  norm       = 3.88468
  Prefactor  = 7.16581
  Prefactor  = 3.56435
  norm       = 0.216737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.1739
  norm       = 4.66121
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.04455
  Prefactor  = 0.637257
 **********
 **   18 **HESSE 
 **********

 FCN=   6714.036     FROM HESSE     STATUS=OK           405 CALLS     2812 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90616        .30819        .25717E-04   -1.5518    
   2  Prefactor     9.7407        9.3994        .64200E-03   -1.5084    
   3  Prefactor     .10000E-03    25.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.2095        .87926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          34.675        20.303        .68054E-04   -1.4530    
   6  Prefactor     17.132        13.196        .96764E-04   -1.4880    
   7  Prefactor     12.509        9.9661        .11327E-03   -1.5000    
   8  Prefactor     .10000E-03    6.7533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.1364        .16760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.474        30.452        .11815E-03   -1.5030    
  11  Prefactor     .51926        13.788        .28864E-02   -1.5564    
  12  norm          3.8847        3.1664        .11968E-03   -1.5314    
  13  Prefactor     7.1658        11.926        .14985E-03   -1.5173    
  14  Prefactor     3.5643        8.1426        .10714E-02   -1.5330    
  15  norm          .21674        .39716        .62988E-03   -1.5615    
  16  Prefactor     .10000E-03    17.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    32.219        .38187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.9015        .11014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.174        24.619        .11035E-03   -1.4982    
  20  norm          4.6612        2.8183        .10300E-03   -1.5276    
  21  Prefactor     .10000E-03    42.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    36.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0446        .17659        .20394E-03   -.91552    
  24  Prefactor     .63726        .16462        .24876E-03   -1.0604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12607e-08
Minuit parameter uncertainties:
  1  0.308186
  2  9.40082
  3  0.000111729
  4  3.25225e-07
  5  20.3071
  6  13.1981
  7  9.96739
  8  7.6701e-07
  9  1.44087e-05
  10  30.4934
  11  5.35223
  12  3.16649
  13  11.9295
  14  8.14518
  15  0.397166
  16  1.68124e-05
  17  7.06093e-05
  18  4.52378e-07
  19  24.6382
  20  2.81843
  21  0.000241264
  22  0.000368481
  23  0.176687
  24  0.164747
Done.

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

Extracting fit parameters...

4FGL J2250.7-2806
   Spectrum: LogParabola
311         norm:  3.885e+00  3.166e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  2.049e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
313         beta:  9.524e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  8.845e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  6.373e-01  1.647e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.045e+00  1.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.80
Ra Dec: 342.690 -28.111
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 2.60e-08 +/- 2.12e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 1.12e-05

TS (Fixed Index): 3.80
Ra Dec: 342.690 -28.111
Photon Flux Upper Limit: 7.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/520791/likelihoodResults_405734401_405993601_4FGL_J2250.7-2806_daily_bin642.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) = 6714.00678578
delta logL = 0.028861396755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6714.0030497
delta logL = 0.0325974749903

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5981       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7352       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0536       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63306       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6714.003     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      201 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5980        2.2964       -.69921E-06    .14652E-02
   2  alpha         1.7349        .51932        .10921E-04    .13535E-03
   3  Normalizat    1.0536        .14265       -.32469E-06   -.20612E-03
   4  Prefactor     .63300        .13895        .32234E-06   -.41010E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.59796
  alpha      = 1.73492
  Normalizat = 1.05365
  Prefactor  = 0.632996
 **********
 **   18 **HESSE 
 **********

 FCN=   6714.003     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5980        3.4600        .12132E-03   -1.5329    
   2  alpha         1.7349        1.0784        .20809E-01   -.31102    
   3  Normalizat    1.0536        .16710        .20322E-03   -.91254    
   4  Prefactor     .63300        .16164        .24958E-03   -1.0621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.51669e-09
Minuit parameter uncertainties:
  1  3.46017
  2  1.11917
  3  0.167178
  4  0.161763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/520791': 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) = 6714.00304955
delta logL = 0.0325976251661

Extracting fit parameters...

4FGL J2250.7-2806
   Spectrum: LogParabola
311         norm:  3.598e+00  3.460e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  1.735e+00  1.119e+00  0.000e+00  5.000e+00 ( 1.000e+00)
313         beta:  9.524e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  8.845e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  6.330e-01  1.618e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.054e+00  1.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.88
Ra Dec: 342.690 -28.111
Photon Index (Free Index): 1.73 +/- 1.12
Photon Flux (Free Index): 1.75e-08 +/- 2.94e-08
Energy Flux (Free Index): 1.69e-05 +/- 2.12e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/520791/cmap_HighResolution_405734401_405993601_4FGL_J2250.7-2806_daily_bin642.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.87e-05', comment='SUCCESS', photon_flux='2.60e-08', energy_flux2='1.69e-05', photon_flux_error='2.12e-08', dlogl='3.26e-02', energy_flux='1.38e-05', photon_flux2='1.75e-08', job_status='DONE', time_completed='2021-09-28 23:14:28.240529', photon_index_error2='1.12', photon_index2='1.73', ts='3.80', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='7.29e-08', energy_flux_error2='2.12e-05', EG='1.04', time_epoch_completed='1632896068.24', return_code='0', job_id='520791', GAL2='0.63', EG2='1.05', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='2.94e-08', ts2='3.88', photon_index='2.05' WHERE bin_id='642' AND source_name='4FGL J2250.7-2806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 23:14:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 520791: <4FGL_J2250.7-2806_daily_bin642> in cluster <slac> Done

Job <4FGL_J2250.7-2806_daily_bin642> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 23:00:44 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 23:00:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 23:00:45 2021
Terminated at Tue Sep 28 23:14:28 2021
Results reported at Tue Sep 28 23:14:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.7-2806_daily_bin642 342.69 -28.1114 405734401 405993601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2250.7-2806 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   662.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            824 sec.

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

