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


Performing analysis on: 4FGL_J2250.7-2806_daily_bin1336
RA = 342.69, Dec = -28.1114
tmin = 585619201, tmax = 585878401
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='523996', job_status='RUN', time_executed='2021-09-28 23:13:15.626300', time_epoch_executed='1632895995.63' WHERE source_name='4FGL J2250.7-2806' and cadence='daily' and bin_id='1336'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/523996

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/523996/ft1_4FGL_J2250.7-2806_daily_bin1336.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/523996/ft2_4FGL_J2250.7-2806_daily_bin1336.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/523996/ft1_4FGL_J2250.7-2806_daily_bin1336.fits outfile=/scratch/kocevski/523996/ft1_filteredMKT_4FGL_J2250.7-2806_daily_bin1336.fits ra=342.69 dec=-28.1114 rad=12.0 tmin=585619201.0 tmax=585878401.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 2.73
user 2.49
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/523996/ft1_filtered_4FGL_J2250.7-2806_daily_bin1336.fits" evtable="EVENTS" scfile=/scratch/kocevski/523996/ft2_4FGL_J2250.7-2806_daily_bin1336.fits sctable="SC_DATA" outfile=/scratch/kocevski/523996/ltcube_585619201_585878401_4FGL_J2250.7-2806_daily_bin1336.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/523996/ft2_4FGL_J2250.7-2806_daily_bin1336.fits
.....................!
real 13.71
user 13.15
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/523996/ft1_filtered_4FGL_J2250.7-2806_daily_bin1336.fits evtable="EVENTS" scfile=/scratch/kocevski/523996/ft2_4FGL_J2250.7-2806_daily_bin1336.fits sctable="SC_DATA" expcube=/scratch/kocevski/523996/ltcube_585619201_585878401_4FGL_J2250.7-2806_daily_bin1336.fits outfile=/scratch/kocevski/523996/expmap_585619201_585878401_4FGL_J2250.7-2806_daily_bin1336.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/523996/ltcube_585619201_585878401_4FGL_J2250.7-2806_daily_bin1336.fits
.....................!
real 192.65
user 186.67
sys 3.99

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/523996/ft1_filtered_4FGL_J2250.7-2806_daily_bin1336.fits scfile=/scratch/kocevski/523996/ft2_4FGL_J2250.7-2806_daily_bin1336.fits outfile=/scratch/kocevski/523996/cmap_585619201_585878401_4FGL_J2250.7-2806_daily_bin1336.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.61
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/523996/ft1_filtered_4FGL_J2250.7-2806_daily_bin1336.fits scfile=/scratch/kocevski/523996/ft2_4FGL_J2250.7-2806_daily_bin1336.fits outfile=/scratch/kocevski/523996/cmap_HighResolution_585619201_585878401_4FGL_J2250.7-2806_daily_bin1336.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/523996/ft1_filtered_4FGL_J2250.7-2806_daily_bin1336.fits evtable="EVENTS" scfile=/scratch/kocevski/523996/ft2_4FGL_J2250.7-2806_daily_bin1336.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/523996/Model_4FGL_J2250.7-2806_daily_bin1336.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/523996/ft1_filtered_4FGL_J2250.7-2806_daily_bin1336.fits......................!
real 25.45
user 24.06
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69085       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    206.33       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7768       1.0000         .10000E-03   10000.    
     5 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    50.599       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.605       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .13690E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11246E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .45733E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.595       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.630       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.873       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.9555       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7182       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .27442       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=   1949.881     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2765 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69086        1.1018       -.20419E-06   -.51892E-03
   2  Prefactor     .10000E-03    57.854       -.45868E-04** at limit **
   3  Prefactor     206.38        113.30        .29873E-04    .90127E-04
   4  Prefactor     5.7794        39.917        .36991E-05   -.17276E-04
   5  norm          .10000E-03    30.936       -.28345E-04** at limit **
   6  Prefactor     50.593        46.744       -.29114E-05   -.28152E-04
   7  Prefactor     11.604        28.956       -.12230E-05    .49430E-05
   8  Prefactor     .10000E-03    36.921        .19431E-04** at limit **
   9  norm          .11079E-03    4.0823        .27300E-05** at limit **
  10  Prefactor     .10000E-03    257.05       -.17275E-03** at limit **
  11  Prefactor     .10000E-03    23.237        .51512E-05** at limit **
  12  norm          .10005E-03    10.557       -.89891E-06** at limit **
  13  Prefactor     .10000E-03    51.175       -.23580E-04** at limit **
  14  Prefactor     24.525        27.046       -.25505E-06    .51124E-03
  15  norm          .10000E-03    .62984        .94604E-07** at limit **
  16  Prefactor     19.635        71.609        .67790E-05   -.40388E-05
  17  Prefactor     28.892        28.720        .84109E-06    .12584E-03
  18  norm          .10000E-03    14.680        .16123E-06** at limit **
  19  Prefactor     .10000E-03    101.96        .61764E-04** at limit **
  20  norm          7.9558        5.6852        .21599E-06   -.12172E-03
  21  Prefactor     .10000E-03    39.221        .22293E-04** at limit **
  22  Prefactor     .10000E-03    41.825        .17580E-04** at limit **
  23  Normalizat    1.7185        .43136       -.22026E-05    .21229E-04
  24  Prefactor     .27417        .37942       -.49261E-05   -.98308E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.690856
  Prefactor  = 0.000100001
  Prefactor  = 206.377
  Prefactor  = 5.77943
  norm       = 0.0001
  Prefactor  = 50.5929
  Prefactor  = 11.6039
  Prefactor  = 0.0001
  norm       = 0.000110788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100047
  Prefactor  = 0.000100001
  Prefactor  = 24.5254
  norm       = 0.0001
  Prefactor  = 19.6352
  Prefactor  = 28.8921
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.95577
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.71848
  Prefactor  = 0.274166
 **********
 **   18 **HESSE 
 **********

 FCN=   1949.881     FROM HESSE     STATUS=OK           401 CALLS     3166 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69086        1.0343        .56884E-03   -1.5542    
   2  Prefactor     .10000E-03    58.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     206.38        113.77        .14070E-03   -1.2825    
   4  Prefactor     5.7794        39.690        .16711E-03   -1.5227    
   5  norm          .10000E-03    30.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     50.593        46.737        .56378E-04   -1.4284    
   7  Prefactor     11.604        28.846        .11760E-03   -1.5027    
   8  Prefactor     .10000E-03    36.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .11079E-03    9.5699        .30745E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    256.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10005E-03    24.567        .25029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    51.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.525        24.501        .80773E-04   -1.4717    
  15  norm          .10000E-03    .63329        .67769E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.635        71.444        .90399E-04   -1.4821    
  17  Prefactor     28.892        28.419        .74561E-04   -1.4632    
  18  norm          .10000E-03    14.859        .16522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    102.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.9558        5.6960        .85492E-04   -1.5144    
  21  Prefactor     .10000E-03    39.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    41.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.7185        .45745        .21826E-03   -.71811    
  24  Prefactor     .27417        .38968        .44557E-03   -1.2381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0694e-09
Minuit parameter uncertainties:
  1  1.03428
  2  0.000585038
  3  113.894
  4  30.3196
  5  7.01099e-05
  6  46.7707
  7  28.8805
  8  3.41763e-05
  9  0.0203247
  10  0.000182976
  11  4.52005e-05
  12  0.00214882
  13  0.00043975
  14  24.5107
  15  6.05247e-06
  16  71.758
  17  28.4319
  18  4.78895e-05
  19  0.000110938
  20  5.69639
  21  2.84245e-05
  22  7.24216e-06
  23  0.458583
  24  0.393477
Done.

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

Extracting fit parameters...

4FGL J2250.7-2806
   Spectrum: LogParabola
311         norm:  1.000e-04  2.149e-03  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:  2.742e-01  3.935e-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.718e+00  4.586e-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: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.23e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/523996/likelihoodResults_585619201_585878401_4FGL_J2250.7-2806_daily_bin1336.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) = 1949.88161513
delta logL = -0.000193911068209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1949.88142122
delta logL = -3.00133251585e-11

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10550E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0926       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7186       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .27415       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=   1949.881     FROM MIGRAD    STATUS=FAILED        95 CALLS      260 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10284E-03    6668.4        .20928E-02** at limit **
   2  alpha         2.3180        3.6407        .16746       -.11682E-05
   3  Normalizat    1.7185        .10619        .21826E-03    .25981E-03
   4  Prefactor     .27418        .93843E-01    .44557E-03    .14789E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1949.881     FROM SIMPLEX   STATUS=UNCHANGED    153 CALLS      413 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10284E-03    6668.4        .79075E-03** at limit **
   2  alpha         2.3180        3.6407        .14272E-04   -.11682E-05
   3  Normalizat    1.7185        .10619        .57548E-06    .25981E-03
   4  Prefactor     .27418        .93843E-01    .87129E-06    .14789E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1949.881     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      453 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    35.385        .41855E-03** at limit **
   2  alpha         2.3569        3.1820        .33491E-01    .84863E-09
   3  Normalizat    1.7185        .42317        .43652E-04   -.11459E-04
   4  Prefactor     .27418        .37158        .17823E-04    .65064E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.3569
  Normalizat = 1.71847
  Prefactor  = 0.274176
 **********
 **   18 **HESSE 
 **********

 FCN=   1949.881     FROM HESSE     STATUS=OK            23 CALLS      476 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    34.304        .83711E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3569        3.5340        .13396E-02   -.57272E-01
   3  Normalizat    1.7185        .42306        .87303E-05   -.71811    
   4  Prefactor     .27418        .37147        .35645E-05   -1.2381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42146e-12
Minuit parameter uncertainties:
  1  1.13882e-05
  2  292.171
  3  0.423956
  4  0.374755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/523996': 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) = 1949.88142065
delta logL = 5.68227505937e-07

Extracting fit parameters...

4FGL J2250.7-2806
   Spectrum: LogParabola
311         norm:  1.000e-04  1.139e-05  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  2.357e+00  2.922e+02  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:  2.742e-01  3.748e-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.718e+00  4.240e-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/523996/cmap_HighResolution_585619201_585878401_4FGL_J2250.7-2806_daily_bin1336.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.23e-05', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-09-28 23:21:00.231876', job_id='523996', GAL2='0.27', fit_tolerance='1e-08', EG2='1.72', EG='1.72', time_epoch_completed='1632896460.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.27', dlogl='5.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1336' AND source_name='4FGL J2250.7-2806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 23:21:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 523996: <4FGL_J2250.7-2806_daily_bin1336> in cluster <slac> Done

Job <4FGL_J2250.7-2806_daily_bin1336> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 23:10:26 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 23:10:27 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:10:27 2021
Terminated at Tue Sep 28 23:21:00 2021
Results reported at Tue Sep 28 23:21:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.7-2806_daily_bin1336 342.69 -28.1114 585619201 585878401 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 :                                   422.45 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             245.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            634 sec.

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

