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


Performing analysis on: 4FGL_J2250.7-2806_daily_bin266
RA = 342.69, Dec = -28.1114
tmin = 308275201, tmax = 308534401
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='519005', job_status='RUN', time_executed='2021-09-28 22:55:46.099889', time_epoch_executed='1632894946.1' WHERE source_name='4FGL J2250.7-2806' and cadence='daily' and bin_id='266'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/519005

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/519005/ft1_4FGL_J2250.7-2806_daily_bin266.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/519005/ft2_4FGL_J2250.7-2806_daily_bin266.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/519005/ft1_4FGL_J2250.7-2806_daily_bin266.fits outfile=/scratch/kocevski/519005/ft1_filteredMKT_4FGL_J2250.7-2806_daily_bin266.fits ra=342.69 dec=-28.1114 rad=12.0 tmin=308275201.0 tmax=308534401.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.40
user 3.18
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/519005/ft1_filtered_4FGL_J2250.7-2806_daily_bin266.fits" evtable="EVENTS" scfile=/scratch/kocevski/519005/ft2_4FGL_J2250.7-2806_daily_bin266.fits sctable="SC_DATA" outfile=/scratch/kocevski/519005/ltcube_308275201_308534401_4FGL_J2250.7-2806_daily_bin266.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/519005/ft2_4FGL_J2250.7-2806_daily_bin266.fits
.....................!
real 12.05
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/519005/ft1_filtered_4FGL_J2250.7-2806_daily_bin266.fits evtable="EVENTS" scfile=/scratch/kocevski/519005/ft2_4FGL_J2250.7-2806_daily_bin266.fits sctable="SC_DATA" expcube=/scratch/kocevski/519005/ltcube_308275201_308534401_4FGL_J2250.7-2806_daily_bin266.fits outfile=/scratch/kocevski/519005/expmap_308275201_308534401_4FGL_J2250.7-2806_daily_bin266.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/519005/ltcube_308275201_308534401_4FGL_J2250.7-2806_daily_bin266.fits
.....................!
real 191.69
user 186.15
sys 5.18

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/519005/ft1_filtered_4FGL_J2250.7-2806_daily_bin266.fits scfile=/scratch/kocevski/519005/ft2_4FGL_J2250.7-2806_daily_bin266.fits outfile=/scratch/kocevski/519005/cmap_308275201_308534401_4FGL_J2250.7-2806_daily_bin266.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/519005/ft1_filtered_4FGL_J2250.7-2806_daily_bin266.fits scfile=/scratch/kocevski/519005/ft2_4FGL_J2250.7-2806_daily_bin266.fits outfile=/scratch/kocevski/519005/cmap_HighResolution_308275201_308534401_4FGL_J2250.7-2806_daily_bin266.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/519005/ft1_filtered_4FGL_J2250.7-2806_daily_bin266.fits evtable="EVENTS" scfile=/scratch/kocevski/519005/ft2_4FGL_J2250.7-2806_daily_bin266.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/519005/Model_4FGL_J2250.7-2806_daily_bin266.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/519005/ft1_filtered_4FGL_J2250.7-2806_daily_bin266.fits.....................!
real 45.55
user 44.14
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/519005/ft1_filtered_4FGL_J2250.7-2806_daily_bin266.fits', '/scratch/kocevski/519005/ft2_4FGL_J2250.7-2806_daily_bin266.fits', expMap='/scratch/kocevski/519005/expmap_308275201_308534401_4FGL_J2250.7-2806_daily_bin266.fits', expCube='/scratch/kocevski/519005/ltcube_308275201_308534401_4FGL_J2250.7-2806_daily_bin266.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/519005/Model_4FGL_J2250.7-2806_daily_bin266.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/519005/ft1_filtered_4FGL_J2250.7-2806_daily_bin266.fits
Spacecraft file(s): /scratch/kocevski/519005/ft2_4FGL_J2250.7-2806_daily_bin266.fits
Exposure map: /scratch/kocevski/519005/expmap_308275201_308534401_4FGL_J2250.7-2806_daily_bin266.fits
Exposure cube: /scratch/kocevski/519005/ltcube_308275201_308534401_4FGL_J2250.7-2806_daily_bin266.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/519005/Model_4FGL_J2250.7-2806_daily_bin266.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) = 5561.18425153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7697       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1530       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    34.023       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1115       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11514E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    94.407       1.0000         .10000E-03   10000.    
     9 'norm      '    .10780E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.918       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1219       1.0000         .10000E-03   10000.    
    12 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.695       1.0000         .10000E-03   10000.    
    15 'norm      '    .10159E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9276       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4307       1.0000         .10000E-03   10000.    
    18 'norm      '    7.9379       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13302E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.354       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93505       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89536       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=   5561.165     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2342 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7698        .51519       -.47463E-08    .12812E-03
   2  Prefactor     .10000E-03    4.3409       -.94402E-09** at limit **
   3  Prefactor     2.1529        27.680        .77762E-05   -.12990E-03
   4  Prefactor     .10000E-03    4.7918       -.10184E-06** at limit **
   5  norm          34.010        22.208       -.11138E-05    .24326E-05
   6  Prefactor     6.1133        21.393       -.73971E-07    .49983E-05
   7  Prefactor     .10001E-03    9.4536       -.76457E-06** at limit **
   8  Prefactor     94.383        35.059        .48345E-06    .51083E-04
   9  norm          .10000E-03    .82647       -.13357E-06** at limit **
  10  Prefactor     38.895        43.397        .14795E-05    .15529E-03
  11  Prefactor     9.1277        11.019        .47911E-06    .10633E-03
  12  norm          .10000E-03    1.9928       -.95925E-07** at limit **
  13  Prefactor     .10000E-03    10.311       -.17798E-06** at limit **
  14  Prefactor     35.692        12.396        .29078E-06    .98146E-03
  15  norm          .10000E-03    .35788       -.31728E-06** at limit **
  16  Prefactor     4.9504        187.68       -.81590E-05   -.10397E-04
  17  Prefactor     3.4308        9.7659        .38030E-06    .20466E-03
  18  norm          7.9430        7.5371       -.18235E-06   -.10359E-04
  19  Prefactor     .10000E-03    39.846        .49193E-07** at limit **
  20  norm          .10000E-03    2.1652       -.56337E-07** at limit **
  21  Prefactor     18.352        17.874       -.88163E-07    .35486E-05
  22  Prefactor     .10000E-03    29.220        .20620E-07** at limit **
  23  Normalizat    .93452        .19507        .19643E-06    .34310E-03
  24  Prefactor     .89565        .17964       -.16643E-06    .32574E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.76983
  Prefactor  = 0.0001
  Prefactor  = 2.15286
  Prefactor  = 0.0001
  norm       = 34.0097
  Prefactor  = 6.11327
  Prefactor  = 0.000100014
  Prefactor  = 94.3832
  norm       = 0.0001
  Prefactor  = 38.8952
  Prefactor  = 9.1277
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.6917
  norm       = 0.0001
  Prefactor  = 4.95045
  Prefactor  = 3.43077
  norm       = 7.943
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.3519
  Prefactor  = 0.0001
  Normalizat = 0.93452
  Prefactor  = 0.89565
 **********
 **   18 **HESSE 
 **********

 FCN=   5561.165     FROM HESSE     STATUS=OK           405 CALLS     2747 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7698        .51601        .28029E-04   -1.5442    
   2  Prefactor     .10000E-03    4.3460        .15175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.1529        27.830        .14040E-02   -1.5415    
   4  Prefactor     .10000E-03    4.8480        .15940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          34.010        21.983        .34350E-03   -1.4541    
   6  Prefactor     6.1133        21.370        .16240E-03   -1.5213    
   7  Prefactor     .10001E-03    14.271        .67425E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     94.383        34.992        .20682E-03   -1.3762    
   9  norm          .10000E-03    .83137        .66189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     38.895        43.575        .64249E-04   -1.4460    
  11  Prefactor     9.1277        11.016        .13270E-03   -1.5104    
  12  norm          .10000E-03    2.0040        .10272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     35.692        11.858        .67077E-04   -1.4512    
  15  norm          .10000E-03    .48658        .79913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.9504        187.36        .18119E-03   -1.5263    
  17  Prefactor     3.4308        9.5949        .21838E-03   -1.5338    
  18  norm          7.9430        7.5370        .14231E-03   -1.5144    
  19  Prefactor     .10000E-03    39.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.2648        .21418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.352        17.872        .93489E-04   -1.4851    
  22  Prefactor     .10000E-03    29.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .93452        .23360        .25023E-03   -.95258    
  24  Prefactor     .89565        .21391        .24573E-03   -.96293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.71966e-10
Minuit parameter uncertainties:
  1  0.516007
  2  1.57958e-06
  3  15.4894
  4  1.14657e-05
  5  21.9878
  6  21.3963
  7  0.000885727
  8  34.9998
  9  6.37004e-06
  10  43.6105
  11  11.0182
  12  7.28114e-06
  13  2.98878e-05
  14  11.8585
  15  9.72529e-06
  16  61.1167
  17  9.59924
  18  7.53792
  19  2.27751e-06
  20  4.41858e-06
  21  17.8771
  22  4.9029e-06
  23  0.233852
  24  0.214106
Done.

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

Extracting fit parameters...

4FGL J2250.7-2806
   Spectrum: LogParabola
311         norm:  1.000e-04  7.281e-06  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:  8.956e-01  2.141e-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:  9.345e-01  2.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/519005/likelihoodResults_308275201_308534401_4FGL_J2250.7-2806_daily_bin266.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5561.16688508
delta logL = -0.00236649437647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5561.03427651
delta logL = 0.130242073805

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .87604E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5089       1.0000          .0000       5.0000    
     3 'Normalizat'    .90515       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91257       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5561.034     FROM MIGRAD    STATUS=FAILED        97 CALLS      310 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .87464E-01    16.252        .39127E-03    .12810E-01
   2  alpha         4.5096        4.5284        .60671E-01    .20034E-03
   3  Normalizat    .90518        .11700        .25341E-03   -.52938E-05
   4  Prefactor     .91255        .11242        .24352E-03   -.31746E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5561.034     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      397 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .87464E-01    16.252        .59970E-04    .12810E-01
   2  alpha         4.5096        4.5284        .67323E-02    .20034E-03
   3  Normalizat    .90518        .11700        .12062E-03   -.52938E-05
   4  Prefactor     .91255        .11242        .79357E-04   -.31746E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5561.034     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      430 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .87464E-01    17.719        .78255E-04   -.41550E-04
   2  alpha         4.5096        4.1933        .12134E-01    .74433E-05
   3  Normalizat    .90518        .19708        .10136E-04   -.53836E-05
   4  Prefactor     .91255        .18744        .97406E-05   -.32680E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0874643
  alpha      = 4.50965
  Normalizat = 0.905177
  Prefactor  = 0.912551
 **********
 **   18 **HESSE 
 **********

 FCN=   5561.034     FROM HESSE     STATUS=OK            27 CALLS      457 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .87464E-01    1.5411        .31302E-05   -1.5649    
   2  alpha         4.5096        4.6673        .24268E-02    .93375    
   3  Normalizat    .90518        .22477        .20273E-05   -.96278    
   4  Prefactor     .91255        .21356        .19481E-05   -.95704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75038e-13
Minuit parameter uncertainties:
  1  0.733873
  2  4.28418
  3  0.225004
  4  0.213755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/519005': 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) = 5561.03427648
delta logL = 0.130242101803

Extracting fit parameters...

4FGL J2250.7-2806
   Spectrum: LogParabola
311         norm:  8.746e-02  7.339e-01  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  4.510e+00  4.284e+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:  9.126e-01  2.138e-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:  9.052e-01  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.690 -28.111

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/519005/cmap_HighResolution_308275201_308534401_4FGL_J2250.7-2806_daily_bin266.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-05', job_status='DONE', photon_flux_upper_limit='5.76e-08', time_completed='2021-09-28 23:09:56.265969', job_id='519005', GAL2='0.91', fit_tolerance='1e-08', EG2='0.91', EG='0.93', time_epoch_completed='1632895796.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.30e-01', ts2='0.27', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='266' AND source_name='4FGL J2250.7-2806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 23:09:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 519005: <4FGL_J2250.7-2806_daily_bin266> in cluster <slac> Done

Job <4FGL_J2250.7-2806_daily_bin266> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:55:33 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:55:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 22:55:34 2021
Terminated at Tue Sep 28 23:09:59 2021
Results reported at Tue Sep 28 23:09:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.7-2806_daily_bin266 342.69 -28.1114 308275201 308534401 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 :                                   608.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            866 sec.

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

