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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1576
RA = 342.606, Dec = -42.1095
tmin = 647827201, tmax = 648086401
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='517331', job_status='RUN', time_executed='2021-09-28 22:51:16.457327', time_epoch_executed='1632894676.46' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1576'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/517331

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/517331/ft1_4FGL_J2250.4-4206_daily_bin1576.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/517331/ft2_4FGL_J2250.4-4206_daily_bin1576.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/517331/ft1_4FGL_J2250.4-4206_daily_bin1576.fits outfile=/scratch/kocevski/517331/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1576.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=647827201.0 tmax=648086401.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.00
user 3.77
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/517331/ft1_filtered_4FGL_J2250.4-4206_daily_bin1576.fits" evtable="EVENTS" scfile=/scratch/kocevski/517331/ft2_4FGL_J2250.4-4206_daily_bin1576.fits sctable="SC_DATA" outfile=/scratch/kocevski/517331/ltcube_647827201_648086401_4FGL_J2250.4-4206_daily_bin1576.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/517331/ft2_4FGL_J2250.4-4206_daily_bin1576.fits
.....................!
real 11.69
user 11.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/517331/ft1_filtered_4FGL_J2250.4-4206_daily_bin1576.fits evtable="EVENTS" scfile=/scratch/kocevski/517331/ft2_4FGL_J2250.4-4206_daily_bin1576.fits sctable="SC_DATA" expcube=/scratch/kocevski/517331/ltcube_647827201_648086401_4FGL_J2250.4-4206_daily_bin1576.fits outfile=/scratch/kocevski/517331/expmap_647827201_648086401_4FGL_J2250.4-4206_daily_bin1576.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/517331/ltcube_647827201_648086401_4FGL_J2250.4-4206_daily_bin1576.fits
.....................!
real 190.29
user 185.26
sys 4.70

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/517331/ft1_filtered_4FGL_J2250.4-4206_daily_bin1576.fits scfile=/scratch/kocevski/517331/ft2_4FGL_J2250.4-4206_daily_bin1576.fits outfile=/scratch/kocevski/517331/cmap_647827201_648086401_4FGL_J2250.4-4206_daily_bin1576.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/517331/ft1_filtered_4FGL_J2250.4-4206_daily_bin1576.fits scfile=/scratch/kocevski/517331/ft2_4FGL_J2250.4-4206_daily_bin1576.fits outfile=/scratch/kocevski/517331/cmap_HighResolution_647827201_648086401_4FGL_J2250.4-4206_daily_bin1576.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/517331/ft1_filtered_4FGL_J2250.4-4206_daily_bin1576.fits evtable="EVENTS" scfile=/scratch/kocevski/517331/ft2_4FGL_J2250.4-4206_daily_bin1576.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/517331/Model_4FGL_J2250.4-4206_daily_bin1576.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/517331/ft1_filtered_4FGL_J2250.4-4206_daily_bin1576.fits.....................!
real 46.87
user 45.57
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/517331/ft1_filtered_4FGL_J2250.4-4206_daily_bin1576.fits', '/scratch/kocevski/517331/ft2_4FGL_J2250.4-4206_daily_bin1576.fits', expMap='/scratch/kocevski/517331/expmap_647827201_648086401_4FGL_J2250.4-4206_daily_bin1576.fits', expCube='/scratch/kocevski/517331/ltcube_647827201_648086401_4FGL_J2250.4-4206_daily_bin1576.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/517331/Model_4FGL_J2250.4-4206_daily_bin1576.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/517331/ft1_filtered_4FGL_J2250.4-4206_daily_bin1576.fits
Spacecraft file(s): /scratch/kocevski/517331/ft2_4FGL_J2250.4-4206_daily_bin1576.fits
Exposure map: /scratch/kocevski/517331/expmap_647827201_648086401_4FGL_J2250.4-4206_daily_bin1576.fits
Exposure cube: /scratch/kocevski/517331/ltcube_647827201_648086401_4FGL_J2250.4-4206_daily_bin1576.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/517331/Model_4FGL_J2250.4-4206_daily_bin1576.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) = 6405.51697591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.113       1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.290       1.0000         .10000E-03   10000.    
     4 'norm      '    .72507E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3754       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.897       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .32871E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.145       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0880       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6695       1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.051       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.647       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.339       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.1510       1.0000         .10000E-03   10000.    
    22 'norm      '    1.1560       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.713       1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.362       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11611E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .14397E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    22.822       1.0000         .10000E-03   10000.    
    28 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .57542       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3219       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.

 FCN=   6405.449     FROM MIGRAD    STATUS=CONVERGED    804 CALLS     4143 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.040        .19450E-05** at limit **
   2  Prefactor     13.119        10.060       -.26957E-05    .65948E-05
   3  Prefactor     56.112        82.503        .31257E-04    .31642E-03
   4  norm          .10000E-03    5.2836       -.65994E-05** at limit **
   5  Prefactor     .10000E-03    2.3592        .62259E-07** at limit **
   6  Prefactor     .10000E-03    2.3692        .48227E-06** at limit **
   7  Prefactor     .10000E-03    15.082       -.53533E-06** at limit **
   8  Prefactor     1.3787        5.0106        .10053E-05   -.54308E-03
   9  Prefactor     13.904        18.156        .36520E-06   -.27412E-04
  10  Prefactor     .10001E-03    12.767        .15228E-05** at limit **
  11  Prefactor     11.135        29.880       -.26862E-04    .96628E-04
  12  Prefactor     1.0981        37.906        .73539E-04   -.80056E-04
  13  Prefactor     3.6681        326.53       -.55641E-04   -.17296E-04
  14  Prefactor     36.051        13.184        .24213E-06    .28252E-04
  15  Prefactor     .10000E-03    4.2705        .46274E-06** at limit **
  16  Prefactor     10.642        22.266        .82409E-06    .20275E-04
  17  Prefactor     .10000E-03    51.505       -.61926E-05** at limit **
  18  Prefactor     14.339        14.157        .81041E-07   -.28883E-04
  19  norm          .10000E-03    4.2337       -.34432E-06** at limit **
  20  norm          .10000E-03    1.9771        .22527E-07** at limit **
  21  norm          3.1521        3.5501        .84037E-07   -.95854E-04
  22  norm          1.1535        6.6129        .15494E-05    .89111E-05
  23  Prefactor     12.713        7.6671        .16353E-07   -.34681E-04
  24  Prefactor     28.370        27.933       -.72207E-06   -.18636E-03
  25  Prefactor     .10000E-03    67.340        .50697E-05** at limit **
  26  norm          .10000E-03    3.2035        .99843E-06** at limit **
  27  Prefactor     22.822        16.800        .26973E-06   -.24709E-04
  28  norm          .10000E-03    .40715        .17363E-07** at limit **
  29  norm          .10000E-03    1.6221        .23979E-06** at limit **
  30  Normalizat    .57518        .17280       -.21859E-05   -.28514E-04
  31  Prefactor     1.3222        .17064        .39824E-06    .29241E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.1192
  Prefactor  = 56.1116
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.37868
  Prefactor  = 13.9037
  Prefactor  = 0.000100011
  Prefactor  = 11.1352
  Prefactor  = 1.09814
  Prefactor  = 3.66807
  Prefactor  = 36.0514
  Prefactor  = 0.0001
  Prefactor  = 10.6421
  Prefactor  = 0.000100001
  Prefactor  = 14.3391
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.15215
  norm       = 1.1535
  Prefactor  = 12.7132
  Prefactor  = 28.3695
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 22.8217
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.575183
  Prefactor  = 1.32224
 **********
 **   18 **HESSE 
 **********

 FCN=   6405.449     FROM HESSE     STATUS=OK           624 CALLS     4767 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.119        10.057        .11062E-03   -1.4983    
   3  Prefactor     56.112        82.658        .26734E-03   -1.4208    
   4  norm          .10000E-03    15.422        .35191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.3727        .12002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.9043        .23485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.3787        4.9649        .30952E-03   -1.5473    
   9  Prefactor     13.904        17.980        .10744E-03   -1.4962    
  10  Prefactor     .10001E-03    78.748        .53986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.135        30.680        .12001E-03   -1.5040    
  12  Prefactor     1.0981        40.920        .22969E-02   -1.5498    
  13  Prefactor     3.6681        331.00        .21086E-03   -1.5325    
  14  Prefactor     36.051        13.191        .66746E-04   -1.4506    
  15  Prefactor     .10000E-03    4.3195        .16146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.642        22.245        .12279E-03   -1.5055    
  17  Prefactor     .10000E-03    51.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.339        14.120        .10577E-03   -1.4950    
  19  norm          .10000E-03    4.2381        .16083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.9806        .10989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.1521        3.5407        .15239E-03   -1.5353    
  22  norm          1.1535        6.5385        .39364E-03   -1.5493    
  23  Prefactor     12.713        7.6630        .11234E-03   -1.4995    
  24  Prefactor     28.370        27.676        .75228E-04   -1.4642    
  25  Prefactor     .10000E-03    67.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.2724        .27629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     22.822        16.797        .83847E-04   -1.4752    
  28  norm          .10000E-03    .41725        .99296E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    1.6499        .99435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .57518        .20001        .29220E-03   -1.0905    
  31  Prefactor     1.3222        .20247        .21439E-03   -.82648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20821e-09
Minuit parameter uncertainties:
  1  8.87325e-05
  2  10.0586
  3  82.8274
  4  0.000517856
  5  2.37282e-06
  6  2.33605e-05
  7  2.32112e-05
  8  4.96642
  9  17.9869
  10  0.00186748
  11  30.7238
  12  13.4162
  13  70.0912
  14  13.1922
  15  1.44924e-05
  16  22.2618
  17  0.000453413
  18  14.1231
  19  6.26969e-06
  20  5.22658e-07
  21  3.54098
  22  5.49327
  23  7.66363
  24  27.6883
  25  0.000432576
  26  9.39523e-05
  27  16.8008
  28  2.99225e-07
  29  1.64882e-05
  30  0.200266
  31  0.202592
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.449e-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:  1.322e+00  2.026e-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:  5.752e-01  2.003e-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: 5.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/517331/likelihoodResults_647827201_648086401_4FGL_J2250.4-4206_daily_bin1576.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) = 6405.45035134
delta logL = -0.00110240829781

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6405.44924888
delta logL = 4.39440555056e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0674       1.0000          .0000       10.000    
     3 'Normalizat'    .57519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3223       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=   6405.449     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      244 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10034E-03    26.964        .16363E-02** at limit **
   2  Index         2.0379        5.9828        .50000        .27471E-04
   3  Normalizat    .57519        .95163E-02    .29221E-03   -.10116E-04
   4  Prefactor     1.3222        .10265E-01    .21439E-03   -.36992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100342
  Index      = 2.03792
  Normalizat = 0.575187
  Prefactor  = 1.32223
 **********
 **   18 **HESSE 
 **********

 FCN=   6405.449     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10034E-03    125.89        .32726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0379        5.4231        .50000       -.63406    
   3  Normalizat    .57519        .21101E-01    .11688E-04   -1.0905    
   4  Prefactor     1.3222        .22760E-01    .42878E-04   -.82648    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.25021e-08
Minuit parameter uncertainties:
  1  0.0131565
  2  228.721
  3  0.0211017
  4  0.0227605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/517331': 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): 102
logL (Free Index) = 6405.44924859
delta logL = 3.39521648129e-07

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.003e-04  1.316e-02  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.038e+00  2.287e+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:  1.322e+00  2.276e-02  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:  5.752e-01  2.110e-02  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/517331/cmap_HighResolution_647827201_648086401_4FGL_J2250.4-4206_daily_bin1576.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-03', job_status='DONE', photon_flux_upper_limit='5.10e-08', time_completed='2021-09-28 23:06:02.328401', job_id='517331', GAL2='1.32', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1632895562.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='3.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1576' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 23:06:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 517331: <4FGL_J2250.4-4206_daily_bin1576> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin1576> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:50:25 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:50: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 22:50:27 2021
Terminated at Tue Sep 28 23:06:03 2021
Results reported at Tue Sep 28 23:06:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1576 342.606 -42.1095 647827201 648086401 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 :                                   882.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            938 sec.

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

