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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1108
RA = 342.606, Dec = -42.1095
tmin = 526521601, tmax = 526780801
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='515595', job_status='RUN', time_executed='2021-09-28 22:48:22.210412', time_epoch_executed='1632894502.21' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1108'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/515595

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/515595/ft1_4FGL_J2250.4-4206_daily_bin1108.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/515595/ft2_4FGL_J2250.4-4206_daily_bin1108.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/515595/ft1_4FGL_J2250.4-4206_daily_bin1108.fits outfile=/scratch/kocevski/515595/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1108.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=526521601.0 tmax=526780801.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 4.38
user 4.13
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/515595/ft2_4FGL_J2250.4-4206_daily_bin1108.fits

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/515595/ft1_filtered_4FGL_J2250.4-4206_daily_bin1108.fits" evtable="EVENTS" scfile=/scratch/kocevski/515595/ft2_4FGL_J2250.4-4206_daily_bin1108.fits sctable="SC_DATA" outfile=/scratch/kocevski/515595/ltcube_526521601_526780801_4FGL_J2250.4-4206_daily_bin1108.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/515595/ft2_4FGL_J2250.4-4206_daily_bin1108.fits
.....................!
real 11.96
user 11.61
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/515595/ft1_filtered_4FGL_J2250.4-4206_daily_bin1108.fits evtable="EVENTS" scfile=/scratch/kocevski/515595/ft2_4FGL_J2250.4-4206_daily_bin1108.fits sctable="SC_DATA" expcube=/scratch/kocevski/515595/ltcube_526521601_526780801_4FGL_J2250.4-4206_daily_bin1108.fits outfile=/scratch/kocevski/515595/expmap_526521601_526780801_4FGL_J2250.4-4206_daily_bin1108.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/515595/ltcube_526521601_526780801_4FGL_J2250.4-4206_daily_bin1108.fits
.....................!
real 190.44
user 185.10
sys 5.02

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

Setting source of interest to:
4FGL J2250.4-4206 @ 342.606 -42.1095

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/515595/ft1_filtered_4FGL_J2250.4-4206_daily_bin1108.fits scfile=/scratch/kocevski/515595/ft2_4FGL_J2250.4-4206_daily_bin1108.fits outfile=/scratch/kocevski/515595/cmap_526521601_526780801_4FGL_J2250.4-4206_daily_bin1108.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.606 yref=-42.1095 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/515595/ft1_filtered_4FGL_J2250.4-4206_daily_bin1108.fits scfile=/scratch/kocevski/515595/ft2_4FGL_J2250.4-4206_daily_bin1108.fits outfile=/scratch/kocevski/515595/cmap_HighResolution_526521601_526780801_4FGL_J2250.4-4206_daily_bin1108.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.606 yref=-42.1095 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/515595/ft1_filtered_4FGL_J2250.4-4206_daily_bin1108.fits evtable="EVENTS" scfile=/scratch/kocevski/515595/ft2_4FGL_J2250.4-4206_daily_bin1108.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/515595/Model_4FGL_J2250.4-4206_daily_bin1108.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/515595/ft1_filtered_4FGL_J2250.4-4206_daily_bin1108.fits.....................!
real 36.69
user 35.46
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/515595/ft1_filtered_4FGL_J2250.4-4206_daily_bin1108.fits', '/scratch/kocevski/515595/ft2_4FGL_J2250.4-4206_daily_bin1108.fits', expMap='/scratch/kocevski/515595/expmap_526521601_526780801_4FGL_J2250.4-4206_daily_bin1108.fits', expCube='/scratch/kocevski/515595/ltcube_526521601_526780801_4FGL_J2250.4-4206_daily_bin1108.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/515595/Model_4FGL_J2250.4-4206_daily_bin1108.xml', optimizer='MINUIT')

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

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.312e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.086e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.783e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/515595/ft1_filtered_4FGL_J2250.4-4206_daily_bin1108.fits
Spacecraft file(s): /scratch/kocevski/515595/ft2_4FGL_J2250.4-4206_daily_bin1108.fits
Exposure map: /scratch/kocevski/515595/expmap_526521601_526780801_4FGL_J2250.4-4206_daily_bin1108.fits
Exposure cube: /scratch/kocevski/515595/ltcube_526521601_526780801_4FGL_J2250.4-4206_daily_bin1108.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/515595/Model_4FGL_J2250.4-4206_daily_bin1108.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) = 4431.55824982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17572       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.9979       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .37325E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0994       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .42458E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6212       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10752E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.832       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    52.265       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.5937       1.0000         .10000E-03   10000.    
    21 'norm      '    3.1100       1.0000         .10000E-03   10000.    
    22 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.8126       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11857E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.4139       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .44192       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+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=   4431.550     FROM MIGRAD    STATUS=CONVERGED   1482 CALLS     4800 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0615        .18142E-02** at limit **
   2  Prefactor     .17689        33.776        .31095E-02    .76463E-04
   3  Prefactor     .10000E-03    28.484        .18142E-02** at limit **
   4  norm          4.9949        7.8897        .17988E-03   -.13127E-03
   5  Prefactor     .10004E-03    29.640        .33525E-02** at limit **
   6  Prefactor     .10000E-03    1.1381        .69096E-03** at limit **
   7  Prefactor     .10000E-03    59.191        .13393    ** at limit **
   8  Prefactor     8.0950        6.2024        .13812E-03    .69304E-04
   9  Prefactor     .10064E-03    112.25        .53273E-02** at limit **
  10  Prefactor     .10000E-03    45.200        .36285E-03** at limit **
  11  Prefactor     .10000E-03    18.358        .18142E-02** at limit **
  12  Prefactor     4.6191        10.807        .18723E-03   -.52219E-04
  13  Prefactor     .10000E-03    65.139        .18142E-02** at limit **
  14  Prefactor     21.830        15.066        .85724E-04    .13421E-03
  15  Prefactor     .10000E-03    2.4191        .10100E-02** at limit **
  16  Prefactor     .10000E-03    27.065        .18142E-02** at limit **
  17  Prefactor     52.360        60.357        .27738E-03    .52420E-04
  18  Prefactor     .10000E-03    7.8687        .18142E-02** at limit **
  19  norm          .10000E-03    3.7016        .12508E-02** at limit **
  20  norm          4.5927        4.8034        .14506E-03    .15086E-03
  21  norm          3.1089        4.2068        .15512E-03    .49837E-05
  22  norm          .10000E-03    4.5554        .13858E-02** at limit **
  23  Prefactor     5.8128        5.3640        .14311E-03    .43226E-03
  24  Prefactor     .10000E-03    14.846        .18142E-02** at limit **
  25  Prefactor     .10001E-03    226.88        .18142E-02** at limit **
  26  norm          .10000E-03    1.8484        .88124E-03** at limit **
  27  Prefactor     .10000E-03    14.783        .18142E-02** at limit **
  28  norm          .10000E-03    .32341        .36752E-03** at limit **
  29  norm          .10000E-03    13.894        .20322E-02** at limit **
  30  Normalizat    1.4142        .23765        .19108E-03    .39414E-03
  31  Prefactor     .44193        .22837        .31791E-03    .39297E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.17689
  Prefactor  = 0.0001
  norm       = 4.99492
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.09501
  Prefactor  = 0.000100644
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 4.61909
  Prefactor  = 0.0001
  Prefactor  = 21.8299
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.3599
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.59269
  norm       = 3.10885
  norm       = 0.0001
  Prefactor  = 5.81275
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.000100005
  Normalizat = 1.41416
  Prefactor  = 0.441933
 **********
 **   18 **HESSE 
 **********

 FCN=   4431.550     FROM HESSE     STATUS=OK           602 CALLS     5402 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0616        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .17689        34.493        .12438E-03   -1.5624    
   3  Prefactor     .10000E-03    28.485        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.9949        7.8897        .71953E-05   -1.5261    
   5  Prefactor     .10004E-03    30.042        .67051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.1382        .13819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    60.570        .13202       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.0950        6.2020        .55249E-05   -1.5139    
   9  Prefactor     .10064E-03    114.44        .10655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    45.202        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.360        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6191        10.806        .74892E-05   -1.5278    
  13  Prefactor     .10000E-03    65.140        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.830        15.066        .34290E-05   -1.4773    
  15  Prefactor     .10000E-03    2.4192        .20201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.066        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     52.360        60.356        .11095E-04   -1.4259    
  18  Prefactor     .10000E-03    7.8700        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.7016        .25015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.5927        4.8034        .58025E-05   -1.5279    
  21  norm          3.1089        4.2067        .62048E-05   -1.5355    
  22  norm          .10000E-03    4.5557        .27716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.8128        5.3637        .28622E-04   -1.5226    
  24  Prefactor     .10000E-03    14.846        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    226.93        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.8485        .17625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    14.790        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    .32342        .73504E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    14.040        .40645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.4142        .23777        .38215E-04   -.80220    
  31  Prefactor     .44193        .22844        .12717E-04   -1.1472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25409e-09
Minuit parameter uncertainties:
  1  1.82129e-06
  2  4.94169
  3  1.40033e-05
  4  7.89135
  5  0.00225938
  6  2.57682e-06
  7  0.000450696
  8  6.2025
  9  0.0172006
  10  0.000656294
  11  5.84717e-05
  12  10.811
  13  5.98066e-05
  14  15.0684
  15  1.42018e-05
  16  5.52192e-06
  17  60.4266
  18  2.37967e-05
  19  3.25952e-06
  20  4.80377
  21  4.20712
  22  3.39756e-05
  23  5.36413
  24  5.47923e-05
  25  0.00247645
  26  8.76055e-06
  27  0.000261479
  28  3.43324e-06
  29  0.000508455
  30  0.237961
  31  0.228913
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.420e-05  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.086e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.783e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  4.419e-01  2.289e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  1.414e+00  2.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 342.606 -42.109
Photon Flux Upper Limit: 4.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/515595/likelihoodResults_526521601_526780801_4FGL_J2250.4-4206_daily_bin1108.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) = 4431.55223785
delta logL = -0.00191264845671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4431.55032513
delta logL = 7.5811840361e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0733       1.0000          .0000       10.000    
     3 'Normalizat'    1.4142       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44192       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+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=   4431.550     FROM MIGRAD    STATUS=FAILED        82 CALLS      225 TOTAL
                     EDM=   .57E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    280.73        .10175E-02** at limit **
   2  Index         2.0597        5.9365        .20000        .43964E-04
   3  Normalizat    1.4142        .57981E-01    .19108E-03    .14696E-04
   4  Prefactor     .44193        .56956E-01    .31791E-03    .92977E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4431.550     FROM SIMPLEX   STATUS=UNCHANGED    171 CALLS      396 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    280.73        .23912E-03** at limit **
   2  Index         2.0597        5.9365        .26693E-05    .43964E-04
   3  Normalizat    1.4142        .57981E-01    .67128E-07    .14696E-04
   4  Prefactor     .44193        .56956E-01    .78951E-07    .92977E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4431.550     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      438 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    243.99        .20349E-02** at limit **
   2  Index         1.6073        8.9545        .40000       -.93166E-07
   3  Normalizat    1.4142        .47832E-01    .76430E-05    .71398E-05
   4  Prefactor     .44193        .46987E-01    .12717E-04    .28608E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.60727
  Normalizat = 1.41416
  Prefactor  = 0.441928
 **********
 **   18 **HESSE 
 **********

 FCN=   4431.550     FROM HESSE     STATUS=OK            29 CALLS      467 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9943        .40698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6073        5.7773        .50000       -.74578    
   3  Normalizat    1.4142        .23109        .15286E-05   -.80220    
   4  Prefactor     .44193        .22675        .25433E-05   -1.1472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22208e-11
Minuit parameter uncertainties:
  1  8.85579e-06
  2  188.179
  3  0.231263
  4  0.227212
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/515595': 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) = 4431.55032233
delta logL = 2.87469447358e-06

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  8.856e-06  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  1.607e+00  1.882e+02  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.783e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  4.419e-01  2.272e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  1.414e+00  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.606 -42.109

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/515595/cmap_HighResolution_526521601_526780801_4FGL_J2250.4-4206_daily_bin1108.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.48e-03', job_status='DONE', photon_flux_upper_limit='4.60e-08', time_completed='2021-09-28 23:01:09.412282', job_id='515595', GAL2='0.44', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1632895269.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.44', dlogl='2.87e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1108' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 23:01:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 515595: <4FGL_J2250.4-4206_daily_bin1108> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin1108> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:45:17 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:45:18 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:45:18 2021
Terminated at Tue Sep 28 23:01:10 2021
Results reported at Tue Sep 28 23:01:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1108 342.606 -42.1095 526521601 526780801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2250.4-4206 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   760.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

