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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1273
RA = 342.606, Dec = -42.1095
tmin = 569289601, tmax = 569548801
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='515837', job_status='RUN', time_executed='2021-09-28 22:48:05.722646', time_epoch_executed='1632894485.72' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1273'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/515837

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/515837/ft1_4FGL_J2250.4-4206_daily_bin1273.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/515837/ft2_4FGL_J2250.4-4206_daily_bin1273.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/515837/ft1_4FGL_J2250.4-4206_daily_bin1273.fits outfile=/scratch/kocevski/515837/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1273.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=569289601.0 tmax=569548801.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.61
user 3.37
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/515837/ft2_4FGL_J2250.4-4206_daily_bin1273.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/515837/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1273.fits evtable="EVENTS" outfile="/scratch/kocevski/515837/ft1_filtered_4FGL_J2250.4-4206_daily_bin1273.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/515837/ft1_filtered_4FGL_J2250.4-4206_daily_bin1273.fits" evtable="EVENTS" scfile=/scratch/kocevski/515837/ft2_4FGL_J2250.4-4206_daily_bin1273.fits sctable="SC_DATA" outfile=/scratch/kocevski/515837/ltcube_569289601_569548801_4FGL_J2250.4-4206_daily_bin1273.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/515837/ft2_4FGL_J2250.4-4206_daily_bin1273.fits
.....................!
real 12.04
user 11.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/515837/ft1_filtered_4FGL_J2250.4-4206_daily_bin1273.fits evtable="EVENTS" scfile=/scratch/kocevski/515837/ft2_4FGL_J2250.4-4206_daily_bin1273.fits sctable="SC_DATA" expcube=/scratch/kocevski/515837/ltcube_569289601_569548801_4FGL_J2250.4-4206_daily_bin1273.fits outfile=/scratch/kocevski/515837/expmap_569289601_569548801_4FGL_J2250.4-4206_daily_bin1273.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/515837/ltcube_569289601_569548801_4FGL_J2250.4-4206_daily_bin1273.fits
.....................!
real 190.63
user 185.09
sys 5.11

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/515837/ft1_filtered_4FGL_J2250.4-4206_daily_bin1273.fits scfile=/scratch/kocevski/515837/ft2_4FGL_J2250.4-4206_daily_bin1273.fits outfile=/scratch/kocevski/515837/cmap_569289601_569548801_4FGL_J2250.4-4206_daily_bin1273.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/515837/ft1_filtered_4FGL_J2250.4-4206_daily_bin1273.fits scfile=/scratch/kocevski/515837/ft2_4FGL_J2250.4-4206_daily_bin1273.fits outfile=/scratch/kocevski/515837/cmap_HighResolution_569289601_569548801_4FGL_J2250.4-4206_daily_bin1273.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/515837/ft1_filtered_4FGL_J2250.4-4206_daily_bin1273.fits evtable="EVENTS" scfile=/scratch/kocevski/515837/ft2_4FGL_J2250.4-4206_daily_bin1273.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/515837/Model_4FGL_J2250.4-4206_daily_bin1273.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/515837/ft1_filtered_4FGL_J2250.4-4206_daily_bin1273.fits.....................!
real 40.35
user 39.07
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.6380       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7637       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.011       1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.927       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    59.124       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.129       1.0000         .10000E-03   10000.    
    19 'norm      '    5.4039       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.3183       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    62.265       1.0000         .10000E-03   10000.    
    25 'Prefactor '    54.532       1.0000         .10000E-03   10000.    
    26 'norm      '    .29248E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.7359       1.0000         .10000E-03   10000.    
    29 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0288       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0302       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=   4863.389     FROM MIGRAD    STATUS=CONVERGED    806 CALLS     4109 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.790        .16501E-06** at limit **
   2  Prefactor     .10000E-03    7.0621        .34031E-07** at limit **
   3  Prefactor     .10000E-03    44.766        .29889E-06** at limit **
   4  norm          6.6381        6.9530       -.59051E-08    .20670E-05
   5  Prefactor     .10000E-03    6.5324        .15714E-06** at limit **
   6  Prefactor     .10000E-03    3.2517        .13092E-06** at limit **
   7  Prefactor     .10000E-03    17.286       -.12969E-06** at limit **
   8  Prefactor     7.7649        8.5352        .15261E-06   -.16039E-04
   9  Prefactor     .10000E-03    30.544        .35323E-06** at limit **
  10  Prefactor     15.004        23.130        .21044E-06    .16371E-04
  11  Prefactor     45.932        38.903        .62892E-08   -.45064E-04
  12  Prefactor     .10000E-03    7.7282       -.15085E-06** at limit **
  13  Prefactor     .10000E-03    34.954       -.80286E-06** at limit **
  14  Prefactor     .10000E-03    8.5344        .62794E-07** at limit **
  15  Prefactor     .10000E-03    3.3091        .65059E-07** at limit **
  16  Prefactor     59.062        59.126       -.62072E-06   -.11965E-03
  17  Prefactor     .10000E-03    29.316        .41421E-06** at limit **
  18  Prefactor     13.128        17.865        .11898E-06   -.18608E-05
  19  norm          5.4046        8.4375        .82701E-07   -.88787E-05
  20  norm          .10000E-03    1.9656       -.14899E-09** at limit **
  21  norm          .10000E-03    2.3310        .17749E-07** at limit **
  22  norm          5.3173        8.7477        .28364E-05   -.17857E-03
  23  Prefactor     .10000E-03    2.2499        .14973E-07** at limit **
  24  Prefactor     62.162        48.499       -.11771E-05   -.15923E-03
  25  Prefactor     54.522        78.449       -.12427E-05   -.31925E-04
  26  norm          .10000E-03    4.3779        .70080E-06** at limit **
  27  Prefactor     .10000E-03    4.6099        .24729E-07** at limit **
  28  norm          1.7360        1.1616        .12685E-07   -.44823E-04
  29  norm          .10000E-03    3.3094        .12321E-06** at limit **
  30  Normalizat    1.0289        .21824        .19224E-06   -.14784E-03
  31  Prefactor     1.0300        .20511       -.73480E-06   -.92974E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.63806
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.76494
  Prefactor  = 0.0001
  Prefactor  = 15.0037
  Prefactor  = 45.9317
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.062
  Prefactor  = 0.0001
  Prefactor  = 13.128
  norm       = 5.40461
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.31728
  Prefactor  = 0.0001
  Prefactor  = 62.1619
  Prefactor  = 54.5223
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.73599
  norm       = 0.0001
  Normalizat = 1.02894
  Prefactor  = 1.02995
 **********
 **   18 **HESSE 
 **********

 FCN=   4863.389     FROM HESSE     STATUS=OK           612 CALLS     4721 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.1419        .18096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    44.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.6381        6.9548        .15575E-03   -1.5193    
   5  Prefactor     .10000E-03    6.5658        .17404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3674        .24538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.7649        8.5163        .14391E-03   -1.5151    
   9  Prefactor     .10000E-03    30.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.004        23.155        .10338E-03   -1.4933    
  11  Prefactor     45.932        38.964        .59163E-04   -1.4351    
  12  Prefactor     .10000E-03    7.7900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    35.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.5685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3248        .12389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     59.062        59.413        .52177E-04   -1.4169    
  17  Prefactor     .10000E-03    29.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.128        17.868        .11055E-03   -1.4983    
  19  norm          5.4046        8.4308        .17287E-03   -1.5243    
  20  norm          .10000E-03    1.9658        .95485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.3332        .10396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.3173        8.6125        .87138E-03   -1.5247    
  23  Prefactor     .10000E-03    2.2579        .10214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     62.162        44.713        .50852E-04   -1.4129    
  25  Prefactor     54.522        78.725        .54317E-04   -1.4230    
  26  norm          .10000E-03    10.451        .24653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.6182        .14623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.7360        1.1564        .58332E-04   -1.5444    
  29  norm          .10000E-03    3.3459        .12371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0289        .25567        .24966E-03   -.92067    
  31  Prefactor     1.0300        .23815        .25140E-03   -.91738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28111e-10
Minuit parameter uncertainties:
  1  4.84949e-05
  2  3.75376e-06
  3  0.00019495
  4  6.95569
  5  4.55378e-06
  6  2.94878e-07
  7  7.32224e-05
  8  8.51759
  9  3.46182e-05
  10  23.1692
  11  38.9856
  12  1.79506e-05
  13  0.000397212
  14  7.04644e-06
  15  1.80223e-06
  16  59.4731
  17  0.000193305
  18  17.875
  19  8.43265
  20  5.57451e-07
  21  1.69863e-07
  22  8.61449
  23  7.3346e-07
  24  44.737
  25  78.8754
  26  0.00018275
  27  1.06055e-06
  28  1.15639
  29  3.02319e-06
  30  0.255977
  31  0.238395
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.802e-06  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.030e+00  2.384e-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.029e+00  2.560e-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.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/515837/likelihoodResults_569289601_569548801_4FGL_J2250.4-4206_daily_bin1273.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) = 4863.39048004
delta logL = -0.00142522120314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4863.38905462
delta logL = 1.96992914425e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0653       1.0000          .0000       10.000    
     3 'Normalizat'    1.0289       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0300       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=   4863.389     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      236 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10262E-03    1.9743        .12606E-01** at limit **
   2  Index         1.9610        5.9421        .50000        .36853E-04
   3  Normalizat    1.0289        .36506E-02    .24966E-03   -.36839E-04
   4  Prefactor     1.0300        .36961E-02    .25140E-03   -.33509E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102621
  Index      = 1.96098
  Normalizat = 1.02894
  Prefactor  = 1.02995
 **********
 **   18 **HESSE 
 **********

 FCN=   4863.389     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10262E-03    76.262        .12982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9610        5.8958        .50000       -.65329    
   3  Normalizat    1.0289        .23130E-01    .99864E-05   -.92067    
   4  Prefactor     1.0300        .23417E-01    .10056E-04   -.91738    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.51852e-07
Minuit parameter uncertainties:
  1  0.0283096
  2  453.725
  3  0.0231303
  4  0.0234173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/515837': 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) = 4863.3890538
delta logL = 1.01439582068e-06

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.026e-04  2.831e-02  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  1.961e+00  4.537e+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.030e+00  2.342e-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:  1.029e+00  2.313e-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/515837/cmap_HighResolution_569289601_569548801_4FGL_J2250.4-4206_daily_bin1273.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.11e-03', job_status='DONE', photon_flux_upper_limit='5.44e-08', time_completed='2021-09-28 23:00:55.646238', job_id='515837', GAL2='1.03', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632895255.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1273' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 23:00:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 515837: <4FGL_J2250.4-4206_daily_bin1273> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin1273> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:45:34 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:45:36 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:36 2021
Terminated at Tue Sep 28 23:00:56 2021
Results reported at Tue Sep 28 23:00:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1273 342.606 -42.1095 569289601 569548801 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 :                                   763.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            922 sec.

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

