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


Performing analysis on: 4FGL_J2250.7-2806_daily_bin1124
RA = 342.69, Dec = -28.1114
tmin = 530668801, tmax = 530928001
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='522629', job_status='RUN', time_executed='2021-09-28 23:10:00.320854', time_epoch_executed='1632895800.32' WHERE source_name='4FGL J2250.7-2806' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/522629

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/522629/ft1_4FGL_J2250.7-2806_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/522629/ft2_4FGL_J2250.7-2806_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/522629/ft1_4FGL_J2250.7-2806_daily_bin1124.fits outfile=/scratch/kocevski/522629/ft1_filteredMKT_4FGL_J2250.7-2806_daily_bin1124.fits ra=342.69 dec=-28.1114 rad=12.0 tmin=530668801.0 tmax=530928001.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.59
user 3.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/522629/ft1_filtered_4FGL_J2250.7-2806_daily_bin1124.fits" evtable="EVENTS" scfile=/scratch/kocevski/522629/ft2_4FGL_J2250.7-2806_daily_bin1124.fits sctable="SC_DATA" outfile=/scratch/kocevski/522629/ltcube_530668801_530928001_4FGL_J2250.7-2806_daily_bin1124.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/522629/ft2_4FGL_J2250.7-2806_daily_bin1124.fits
.....................!
real 11.31
user 10.97
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/522629/ft1_filtered_4FGL_J2250.7-2806_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/522629/ft2_4FGL_J2250.7-2806_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/522629/ltcube_530668801_530928001_4FGL_J2250.7-2806_daily_bin1124.fits outfile=/scratch/kocevski/522629/expmap_530668801_530928001_4FGL_J2250.7-2806_daily_bin1124.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/522629/ltcube_530668801_530928001_4FGL_J2250.7-2806_daily_bin1124.fits
.....................!
real 197.60
user 192.60
sys 4.68

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/522629/ft1_filtered_4FGL_J2250.7-2806_daily_bin1124.fits scfile=/scratch/kocevski/522629/ft2_4FGL_J2250.7-2806_daily_bin1124.fits outfile=/scratch/kocevski/522629/cmap_530668801_530928001_4FGL_J2250.7-2806_daily_bin1124.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/522629/ft1_filtered_4FGL_J2250.7-2806_daily_bin1124.fits scfile=/scratch/kocevski/522629/ft2_4FGL_J2250.7-2806_daily_bin1124.fits outfile=/scratch/kocevski/522629/cmap_HighResolution_530668801_530928001_4FGL_J2250.7-2806_daily_bin1124.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/522629/ft1_filtered_4FGL_J2250.7-2806_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/522629/ft2_4FGL_J2250.7-2806_daily_bin1124.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/522629/Model_4FGL_J2250.7-2806_daily_bin1124.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/522629/ft1_filtered_4FGL_J2250.7-2806_daily_bin1124.fits.....................!
real 51.09
user 49.72
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9333       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18908       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.631       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .91814       1.0000         .10000E-03   10000.    
     5 'norm      '    7.3179       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0625       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.562       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1001       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.560       1.0000         .10000E-03   10000.    
    12 'norm      '    .29275E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.180       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7457       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10815E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.315       1.0000         .10000E-03   10000.    
    20 'norm      '    .19625E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12674E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .84081       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1156       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=   6536.675     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2396 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9333        .44159        .10075E-07    .68456E-05
   2  Prefactor     .32325        17.577        .41886E-05   -.22282E-03
   3  Prefactor     26.595        19.943        .10647E-06   -.16984E-03
   4  Prefactor     .90257        4.1629       -.46312E-07   -.46740E-04
   5  norm          7.3175        14.486        .65271E-07    .58984E-04
   6  Prefactor     3.0771        47.541       -.66942E-06    .27776E-05
   7  Prefactor     .10000E-03    3.2551       -.14499E-06** at limit **
   8  Prefactor     34.582        25.166        .26952E-06    .22813E-04
   9  norm          .10000E-03    1.6314       -.27693E-06** at limit **
  10  Prefactor     9.0998        34.706       -.23838E-05   -.22250E-04
  11  Prefactor     14.564        11.300       -.10813E-06    .10265E-04
  12  norm          .10000E-03    10.358       -.44448E-05** at limit **
  13  Prefactor     .10000E-03    7.6524        .55663E-06** at limit **
  14  Prefactor     10.201        12.856        .10365E-05   -.36524E-03
  15  norm          2.7437        1.1129       -.50746E-06   -.13717E-02
  16  Prefactor     .10000E-03    16.417       -.25845E-06** at limit **
  17  Prefactor     .10000E-03    8.5794        .12805E-05** at limit **
  18  norm          .10000E-03    1.5678       -.12976E-08** at limit **
  19  Prefactor     17.322        19.292        .69670E-08    .70991E-05
  20  norm          .10000E-03    1.8432       -.21744E-06** at limit **
  21  Prefactor     .10000E-03    39.351        .60508E-06** at limit **
  22  Prefactor     .10001E-03    98.729       -.53862E-05** at limit **
  23  Normalizat    .84065        .19135        .78896E-08    .28705E-04
  24  Prefactor     1.1157        .18033        .74209E-06   -.18342E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.93327
  Prefactor  = 0.323248
  Prefactor  = 26.5949
  Prefactor  = 0.902566
  norm       = 7.31746
  Prefactor  = 3.07708
  Prefactor  = 0.0001
  Prefactor  = 34.5821
  norm       = 0.0001
  Prefactor  = 9.09979
  Prefactor  = 14.564
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2005
  norm       = 2.74366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.3223
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Normalizat = 0.840649
  Prefactor  = 1.11567
 **********
 **   18 **HESSE 
 **********

 FCN=   6536.675     FROM HESSE     STATUS=OK           407 CALLS     2803 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9333        .44249        .24964E-04   -1.5430    
   2  Prefactor     .32325        145.67        .48561E-02   -1.5594    
   3  Prefactor     26.595        20.199        .77629E-04   -1.4676    
   4  Prefactor     .90257        13.388        .29465E-02   -1.5518    
   5  norm          7.3175        14.497        .14827E-03   -1.5167    
   6  Prefactor     3.0771        45.510        .23181E-03   -1.5357    
   7  Prefactor     .10000E-03    3.2619        .14244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     34.582        25.045        .68164E-04   -1.4531    
   9  norm          .10000E-03    1.6406        .19866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.0998        34.234        .13286E-03   -1.5105    
  11  Prefactor     14.564        11.307        .10497E-03   -1.4945    
  12  norm          .10000E-03    10.770        .21241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.6955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.201        12.862        .12559E-03   -1.5069    
  15  norm          2.7437        1.1202        .37340E-04   -1.5377    
  16  Prefactor     .10000E-03    16.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.7439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.5686        .98866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.322        19.302        .96250E-04   -1.4875    
  20  norm          .10000E-03    12.202        .21102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    39.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    100.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .84065        .23092        .26886E-03   -.98578    
  24  Prefactor     1.1157        .21527        .23598E-03   -.88967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81319e-08
Minuit parameter uncertainties:
  1  0.442489
  2  13.7555
  3  20.2041
  4  6.95388
  5  14.5035
  6  23.6888
  7  3.59696e-06
  8  25.0525
  9  1.25122e-05
  10  34.3079
  11  11.3089
  12  0.000141734
  13  1.07419e-05
  14  12.8655
  15  1.12018
  16  3.62295e-05
  17  4.37955e-05
  18  5.89452e-08
  19  19.3087
  20  3.52674e-05
  21  0.000130146
  22  0.00177543
  23  0.23119
  24  0.215436
Done.

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

Extracting fit parameters...

4FGL J2250.7-2806
   Spectrum: LogParabola
311         norm:  1.000e-04  1.417e-04  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:  1.116e+00  2.154e-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:  8.406e-01  2.312e-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.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/522629/likelihoodResults_530668801_530928001_4FGL_J2250.7-2806_daily_bin1124.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) = 6536.67571097
delta logL = -0.000442219912657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6536.6192603
delta logL = 0.0560084493709

Fit tolerance = 1e-08

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

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

 FCN=   6536.619     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      448 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57034        2.4603        .18015E-03    .12242E-04
   2  alpha         2.9109        1.7365        .35332E-01    .68140E-05
   3  Normalizat    .83149        .21261        .27003E-03   -.38986E-04
   4  Prefactor     1.1183        .21120        .23560E-03   -.41306E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.570335
  alpha      = 2.91089
  Normalizat = 0.831488
  Prefactor  = 1.11832
 **********
 **   18 **HESSE 
 **********

 FCN=   6536.619     FROM HESSE     STATUS=OK            25 CALLS      473 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57034        2.0495        .72061E-05   -1.5557    
   2  alpha         2.9109        1.5433        .14133E-02    .16511    
   3  Normalizat    .83149        .21294        .10801E-04   -.98911    
   4  Prefactor     1.1183        .21139        .94239E-05   -.88883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09472e-12
Minuit parameter uncertainties:
  1  2.04972
  2  1.66747
  3  0.213152
  4  0.211551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/522629': 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) = 6536.6192603
delta logL = 0.0560084545523

Extracting fit parameters...

4FGL J2250.7-2806
   Spectrum: LogParabola
311         norm:  5.703e-01  2.050e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  2.911e+00  1.667e+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:  1.118e+00  2.116e-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:  8.315e-01  2.132e-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/522629/cmap_HighResolution_530668801_530928001_4FGL_J2250.7-2806_daily_bin1124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.09e-05', job_status='DONE', photon_flux_upper_limit='5.82e-08', time_completed='2021-09-28 23:22:09.329488', job_id='522629', GAL2='1.12', fit_tolerance='1e-08', EG2='0.83', EG='0.84', time_epoch_completed='1632896529.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='5.60e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1124' AND source_name='4FGL J2250.7-2806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 23:22:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 522629: <4FGL_J2250.7-2806_daily_bin1124> in cluster <slac> Done

Job <4FGL_J2250.7-2806_daily_bin1124> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 23:05:51 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 23:05:52 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:05:52 2021
Terminated at Tue Sep 28 23:22:09 2021
Results reported at Tue Sep 28 23:22:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.7-2806_daily_bin1124 342.69 -28.1114 530668801 530928001 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 :                                   670.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            978 sec.

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

