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


Performing analysis on: 4FGL_J2250.7-2806_daily_bin632
RA = 342.69, Dec = -28.1114
tmin = 403142401, tmax = 403401601
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='520776', job_status='RUN', time_executed='2021-09-28 23:00:56.155130', time_epoch_executed='1632895256.16' WHERE source_name='4FGL J2250.7-2806' and cadence='daily' and bin_id='632'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/520776

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/520776/ft1_4FGL_J2250.7-2806_daily_bin632.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/520776/ft2_4FGL_J2250.7-2806_daily_bin632.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/520776/ft1_4FGL_J2250.7-2806_daily_bin632.fits outfile=/scratch/kocevski/520776/ft1_filteredMKT_4FGL_J2250.7-2806_daily_bin632.fits ra=342.69 dec=-28.1114 rad=12.0 tmin=403142401.0 tmax=403401601.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.60
user 3.30
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/520776/ft1_filtered_4FGL_J2250.7-2806_daily_bin632.fits" evtable="EVENTS" scfile=/scratch/kocevski/520776/ft2_4FGL_J2250.7-2806_daily_bin632.fits sctable="SC_DATA" outfile=/scratch/kocevski/520776/ltcube_403142401_403401601_4FGL_J2250.7-2806_daily_bin632.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/520776/ft2_4FGL_J2250.7-2806_daily_bin632.fits
.....................!
real 12.31
user 11.47
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/520776/ft1_filtered_4FGL_J2250.7-2806_daily_bin632.fits evtable="EVENTS" scfile=/scratch/kocevski/520776/ft2_4FGL_J2250.7-2806_daily_bin632.fits sctable="SC_DATA" expcube=/scratch/kocevski/520776/ltcube_403142401_403401601_4FGL_J2250.7-2806_daily_bin632.fits outfile=/scratch/kocevski/520776/expmap_403142401_403401601_4FGL_J2250.7-2806_daily_bin632.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/520776/ltcube_403142401_403401601_4FGL_J2250.7-2806_daily_bin632.fits
.....................!
real 192.66
user 186.41
sys 5.49

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/520776/ft1_filtered_4FGL_J2250.7-2806_daily_bin632.fits scfile=/scratch/kocevski/520776/ft2_4FGL_J2250.7-2806_daily_bin632.fits outfile=/scratch/kocevski/520776/cmap_403142401_403401601_4FGL_J2250.7-2806_daily_bin632.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.64
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/520776/ft1_filtered_4FGL_J2250.7-2806_daily_bin632.fits scfile=/scratch/kocevski/520776/ft2_4FGL_J2250.7-2806_daily_bin632.fits outfile=/scratch/kocevski/520776/cmap_HighResolution_403142401_403401601_4FGL_J2250.7-2806_daily_bin632.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .54999       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10471E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.193       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .36704E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.7350       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.7320       1.0000         .10000E-03   10000.    
    12 'norm      '    12.293       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8540       1.0000         .10000E-03   10000.    
    15 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.664       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .87956E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    32.418       1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.633       1.0000         .10000E-03   10000.    
    20 'norm      '    .74403       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    45.005       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2480       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88368       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4758.855     FROM MIGRAD    STATUS=CONVERGED    110 CALLS     2295 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .54995        .34114       -.71786E-07   -.61156E-03
   2  Prefactor     .10007E-03    21.965        .22226E-04** at limit **
   3  Prefactor     34.190        1.4979       -.10945E-05    .13310E-02
   4  Prefactor     .15182E-03    77.813        .19412E-04** at limit **
   5  norm          .10000E-03    6.1095        .18156E-06** at limit **
   6  Prefactor     .10041E-03    25.464       -.42348E-04** at limit **
   7  Prefactor     .10000E-03    8.3572       -.46378E-05** at limit **
   8  Prefactor     .10000E-03    9.7902        .27330E-05** at limit **
   9  norm          3.7349        2.2812        .32467E-06    .47959E-03
  10  Prefactor     .10001E-03    14.330       -.66237E-05** at limit **
  11  Prefactor     9.7263        1.3621        .15915E-05   -.12944E-03
  12  norm          12.294        5.8863       -.31032E-07    .24705E-03
  13  Prefactor     .10000E-03    6.8837        .12829E-06** at limit **
  14  Prefactor     3.8679        6.3639       -.16357E-04   -.14064E-02
  15  norm          .10000E-03    2.6254        .28319E-06** at limit **
  16  Prefactor     26.659        1.7082       -.15690E-05    .20666E-02
  17  Prefactor     .13289E-03    170.12       -.50732E-04** at limit **
  18  norm          32.415        1.4026        .93986E-06    .10453E-03
  19  Prefactor     29.622        2.1460       -.20074E-05    .28162E-02
  20  norm          .74421        2.3948        .13273E-06   -.11195E-03
  21  Prefactor     .10041E-03    30.982        .27074E-04** at limit **
  22  Prefactor     44.996        2.2620       -.17671E-05    .38823E-02
  23  Normalizat    1.2483        .26597        .63135E-05    .47065E-04
  24  Prefactor     .88352        .24858       -.38812E-05   -.94816E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.549946
  Prefactor  = 0.000100073
  Prefactor  = 34.1905
  Prefactor  = 0.000151818
  norm       = 0.0001
  Prefactor  = 0.000100414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.73494
  Prefactor  = 0.000100008
  Prefactor  = 9.7263
  norm       = 12.2936
  Prefactor  = 0.0001
  Prefactor  = 3.86794
  norm       = 0.0001
  Prefactor  = 26.6585
  Prefactor  = 0.000132894
  norm       = 32.415
  Prefactor  = 29.6218
  norm       = 0.744207
  Prefactor  = 0.000100409
  Prefactor  = 44.9955
  Normalizat = 1.24827
  Prefactor  = 0.883516
 **********
 **   18 **HESSE 
 **********

 FCN=   4758.855     FROM HESSE     STATUS=OK           463 CALLS     2758 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .54995        .34099        .69821E-02   -1.5560    
   2  Prefactor     .10007E-03    21.860        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     34.190        24.907        .17133E-02   -1.4538    
   4  Prefactor     .15182E-03    7.3496        .65995E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.1173        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10041E-03    29.968        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.3035        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.8104        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.7349        2.2824        .52233E-02   -1.5321    
  10  Prefactor     .10001E-03    14.378        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.7263        13.313        .32113E-02   -1.5084    
  12  norm          12.294        6.8712        .28562E-02   -1.5007    
  13  Prefactor     .10000E-03    6.9073        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.8679        14.261        .51391E-02   -1.5315    
  15  norm          .10000E-03    .57113        .25240E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.659        71.735        .19395E-02   -1.4675    
  17  Prefactor     .13289E-03    8.2577        .94537E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          32.415        15.767        .17594E-02   -1.4569    
  19  Prefactor     29.622        53.152        .18400E-02   -1.4619    
  20  norm          .74421        2.4955        .43610E-01   -1.5535    
  21  Prefactor     .10041E-03    36.541        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     44.996        112.84        .14941E-02   -1.4365    
  23  Normalizat    1.2483        .23376        .55965E-01   -.85124    
  24  Prefactor     .88352        .20909        .44797E-01   -.96719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53744e-07
Minuit parameter uncertainties:
  1  0.340988
  2  0.00252681
  3  24.9147
  4  0.0390353
  5  5.92576e-05
  6  0.00704855
  7  9.25987e-05
  8  7.40508e-05
  9  2.28248
  10  0.000683083
  11  13.3173
  12  6.87164
  13  6.5498e-06
  14  14.2738
  15  4.76793e-06
  16  71.9683
  17  0.0329668
  18  15.7693
  19  53.2369
  20  2.49581
  21  0.00773485
  22  113.378
  23  0.233952
  24  0.209276
Done.

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

Extracting fit parameters...

4FGL J2250.7-2806
   Spectrum: LogParabola
311         norm:  1.229e+01  6.872e+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:  8.835e-01  2.093e-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.248e+00  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.53
Ra Dec: 342.690 -28.111
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 8.21e-08 +/- 4.59e-08
Energy Flux (Fixed Index): 4.36e-05 +/- 2.44e-05

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) = 4757.86358288
delta logL = 0.991111374744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4757.83974499
delta logL = 1.01494927089

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9591       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7056       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92131       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=   4757.840     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      269 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9583        5.7199        .82786E-04    .35548E-02
   2  alpha         2.7058        .49122        .79347E-02    .35364E-03
   3  Normalizat    1.1794        .26958        .25303E-03   -.16093E-03
   4  Prefactor     .92131        .24998        .26511E-03   -.27893E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.95829
  alpha      = 2.70579
  Normalizat = 1.17938
  Prefactor  = 0.921312
 **********
 **   18 **HESSE 
 **********

 FCN=   4757.840     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9583        5.4758        .16557E-04   -1.5109    
   2  alpha         2.7058        .47017        .31739E-03    .82408E-01
   3  Normalizat    1.1794        .26955        .50605E-04   -.87242    
   4  Prefactor     .92131        .25003        .53021E-04   -.95400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59262e-09
Minuit parameter uncertainties:
  1  5.47612
  2  0.473005
  3  0.269868
  4  0.250338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/520776': 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) = 4757.83974493
delta logL = 1.01494933207

Extracting fit parameters...

4FGL J2250.7-2806
   Spectrum: LogParabola
311         norm:  8.958e+00  5.476e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        alpha:  2.706e+00  4.730e-01  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.213e-01  2.503e-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.179e+00  2.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.57
Ra Dec: 342.690 -28.111
Photon Index (Free Index): 2.71 +/- 0.47
Photon Flux (Free Index): 1.47e-07 +/- 7.41e-08
Energy Flux (Free Index): 3.76e-05 +/- 1.60e-05

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/520776/cmap_HighResolution_403142401_403401601_4FGL_J2250.7-2806_daily_bin632.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.21e-08', energy_flux2='3.76e-05', photon_flux_error='4.59e-08', dlogl='1.01e+00', energy_flux='4.36e-05', photon_flux2='1.47e-07', job_status='DONE', time_completed='2021-09-28 23:12:00.787297', photon_index_error2='0.47', photon_index2='2.71', ts='9.53', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='1.25', time_epoch_completed='1632895920.79', return_code='0', job_id='520776', GAL2='0.92', EG2='1.18', return_code2='0', energy_flux_error='2.44e-05', photon_flux_error2='7.41e-08', ts2='11.57', photon_index='2.05' WHERE bin_id='632' AND source_name='4FGL J2250.7-2806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 23:12:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 520776: <4FGL_J2250.7-2806_daily_bin632> in cluster <slac> Done

Job <4FGL_J2250.7-2806_daily_bin632> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 23:00:43 2021
Job was executed on host(s) <bullet0225>, 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:12:01 2021
Results reported at Tue Sep 28 23:12:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.7-2806_daily_bin632 342.69 -28.1114 403142401 403401601 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 :                                   506.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            678 sec.

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

