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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin798
RA = 342.606, Dec = -42.1095
tmin = 446169601, tmax = 446428801
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='514070', job_status='RUN', time_executed='2021-09-28 22:43:06.851366', time_epoch_executed='1632894186.85' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='798'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514070

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514070/ft1_4FGL_J2250.4-4206_daily_bin798.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514070/ft2_4FGL_J2250.4-4206_daily_bin798.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514070/ft1_4FGL_J2250.4-4206_daily_bin798.fits outfile=/scratch/kocevski/514070/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin798.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=446169601.0 tmax=446428801.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.43
user 3.23
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514070/ft1_filtered_4FGL_J2250.4-4206_daily_bin798.fits" evtable="EVENTS" scfile=/scratch/kocevski/514070/ft2_4FGL_J2250.4-4206_daily_bin798.fits sctable="SC_DATA" outfile=/scratch/kocevski/514070/ltcube_446169601_446428801_4FGL_J2250.4-4206_daily_bin798.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/514070/ft2_4FGL_J2250.4-4206_daily_bin798.fits
.....................!
real 13.89
user 13.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514070/ft1_filtered_4FGL_J2250.4-4206_daily_bin798.fits evtable="EVENTS" scfile=/scratch/kocevski/514070/ft2_4FGL_J2250.4-4206_daily_bin798.fits sctable="SC_DATA" expcube=/scratch/kocevski/514070/ltcube_446169601_446428801_4FGL_J2250.4-4206_daily_bin798.fits outfile=/scratch/kocevski/514070/expmap_446169601_446428801_4FGL_J2250.4-4206_daily_bin798.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/514070/ltcube_446169601_446428801_4FGL_J2250.4-4206_daily_bin798.fits
.....................!
real 189.82
user 185.06
sys 4.45

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/514070/ft1_filtered_4FGL_J2250.4-4206_daily_bin798.fits scfile=/scratch/kocevski/514070/ft2_4FGL_J2250.4-4206_daily_bin798.fits outfile=/scratch/kocevski/514070/cmap_446169601_446428801_4FGL_J2250.4-4206_daily_bin798.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514070/ft1_filtered_4FGL_J2250.4-4206_daily_bin798.fits scfile=/scratch/kocevski/514070/ft2_4FGL_J2250.4-4206_daily_bin798.fits outfile=/scratch/kocevski/514070/cmap_HighResolution_446169601_446428801_4FGL_J2250.4-4206_daily_bin798.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.754       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8485       1.0000         .10000E-03   10000.    
     3 'Prefactor '    107.17       1.0000         .10000E-03   10000.    
     4 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .92248       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .72994       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23769E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    76.987       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .19588E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    3.1351       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    31.845       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    6.5938       1.0000         .10000E-03   10000.    
    29 'norm      '    4.8707       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3688       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .60252       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=   5412.296     FROM MIGRAD    STATUS=CONVERGED    811 CALLS     4128 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.800        38.986       -.16060E-05   -.13346E-03
   2  Prefactor     5.8505        9.1925        .28084E-06    .64623E-03
   3  Prefactor     107.08        110.66        .37776E-05    .17194E-03
   4  norm          .10000E-03    5.2095       -.46086E-07** at limit **
   5  Prefactor     .10000E-03    6.0790        .24360E-07** at limit **
   6  Prefactor     .92506        4.1802        .84001E-06    .40895E-03
   7  Prefactor     .10000E-03    16.931        .21581E-06** at limit **
   8  Prefactor     .72929        6.9225        .10130E-05    .36361E-03
   9  Prefactor     .10000E-03    10.988        .21424E-06** at limit **
  10  Prefactor     .10000E-03    49.532        .22658E-06** at limit **
  11  Prefactor     .10000E-03    16.182        .54422E-06** at limit **
  12  Prefactor     .10000E-03    3.8922        .67876E-08** at limit **
  13  Prefactor     .10000E-03    27.748        .10213E-05** at limit **
  14  Prefactor     .10000E-03    9.0225       -.30881E-06** at limit **
  15  Prefactor     .10000E-03    4.9282        .23990E-06** at limit **
  16  Prefactor     .10000E-03    21.147       -.61891E-06** at limit **
  17  Prefactor     77.043        78.938       -.22967E-05   -.16470E-03
  18  Prefactor     .10000E-03    4.2711        .71639E-07** at limit **
  19  norm          .10000E-03    6.0236       -.91003E-07** at limit **
  20  norm          .10000E-03    2.1054        .32935E-08** at limit **
  21  norm          .10077E-03    9.9663        .49433E-05** at limit **
  22  norm          3.1337        8.1335       -.36410E-07    .37930E-04
  23  Prefactor     .10000E-03    2.0963        .18310E-07** at limit **
  24  Prefactor     31.753        31.657       -.25914E-05   -.14671E-03
  25  Prefactor     .10000E-03    18.896       -.48038E-06** at limit **
  26  norm          .10000E-03    7.1880       -.45962E-05** at limit **
  27  Prefactor     .10000E-03    4.6045       -.12592E-06** at limit **
  28  norm          6.5942        1.6100        .18719E-07   -.99038E-05
  29  norm          4.8686        3.8116       -.36368E-06   -.43599E-03
  30  Normalizat    1.3686        .19518       -.12073E-05   -.23953E-03
  31  Prefactor     .60269        .18982        .80686E-06   -.13377E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.7997
  Prefactor  = 5.85053
  Prefactor  = 107.081
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.925055
  Prefactor  = 0.0001
  Prefactor  = 0.729288
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 77.0434
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100768
  norm       = 3.13365
  Prefactor  = 0.0001
  Prefactor  = 31.7528
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.5942
  norm       = 4.86858
  Normalizat = 1.36864
  Prefactor  = 0.602691
 **********
 **   18 **HESSE 
 **********

 FCN=   5412.296     FROM HESSE     STATUS=OK           618 CALLS     4746 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.800        39.288        .72249E-04   -1.4597    
   2  Prefactor     5.8505        9.1542        .83031E-03   -1.5224    
   3  Prefactor     107.08        110.14        .19424E-03   -1.3635    
   4  norm          .10000E-03    5.2651        .16399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.1601        .17709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .92506        4.2756        .28011E-03   -1.5516    
   7  Prefactor     .10000E-03    16.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72929        7.1458        .36685E-03   -1.5537    
   9  Prefactor     .10000E-03    11.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    50.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.9055        .14175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.0534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.9718        .15953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     77.043        79.320        .22883E-03   -1.3950    
  18  Prefactor     .10000E-03    4.2758        .14849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.0509        .17634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.1065        .10425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10077E-03    5.5595        .51277E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.1337        8.1225        .22896E-03   -1.5354    
  23  Prefactor     .10000E-03    2.1013        .10401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     31.753        32.192        .71004E-04   -1.4580    
  25  Prefactor     .10000E-03    18.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    7.9969        .21573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.6129        .15416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          6.5942        1.6119        .44586E-04   -1.5194    
  29  norm          4.8686        3.8022        .12075E-03   -1.5267    
  30  Normalizat    1.3686        .23626        .21165E-03   -.81540    
  31  Prefactor     .60269        .22738        .30491E-03   -1.0747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36435e-09
Minuit parameter uncertainties:
  1  39.3206
  2  9.15639
  3  110.347
  4  2.26986e-05
  5  1.03517e-05
  6  3.97777
  7  4.33974e-05
  8  4.56609
  9  5.02156e-05
  10  0.000229516
  11  6.77699e-05
  12  3.40711e-06
  13  0.000254724
  14  9.0209e-06
  15  2.97701e-05
  16  0.00014023
  17  79.4288
  18  7.15592e-06
  19  1.06838e-05
  20  2.34245e-07
  21  0.00413254
  22  8.12533
  23  1.48925e-06
  24  32.2093
  25  9.21424e-05
  26  0.000192556
  27  1.24998e-05
  28  1.61194
  29  3.80236
  30  0.236452
  31  0.227731
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.977e-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:  6.027e-01  2.277e-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.369e+00  2.365e-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: 6.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514070/likelihoodResults_446169601_446428801_4FGL_J2250.4-4206_daily_bin798.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) = 5412.296637
delta logL = -0.000957226292485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5412.29567974
delta logL = 3.00387910102e-08

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10055E-03    38.501        .16154E-02** at limit **
   2  Index         2.0332        5.9804        .50000        .24291E-04
   3  Normalizat    1.3686        .12417E-01    .21165E-03    .55379E-04
   4  Prefactor     .60269        .12410E-01    .30491E-03    .23527E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100549
  Index      = 2.03319
  Normalizat = 1.36864
  Prefactor  = 0.60269
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10055E-03    176.92        .32307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0332        6.0161        .50000       -.63523    
   3  Normalizat    1.3686        .27501E-01    .42330E-04   -.81540    
   4  Prefactor     .60269        .27482E-01    .12196E-04   -1.0747    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.63722e-08
Minuit parameter uncertainties:
  1  0.0197678
  2  332.585
  3  0.0275012
  4  0.0274827
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514070': 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) = 5412.29567947
delta logL = 3.00457031699e-07

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.005e-04  1.977e-02  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.033e+00  3.326e+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:  6.027e-01  2.748e-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.369e+00  2.750e-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/514070/cmap_HighResolution_446169601_446428801_4FGL_J2250.4-4206_daily_bin798.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.69e-03', job_status='DONE', photon_flux_upper_limit='6.21e-08', time_completed='2021-09-28 22:56:28.655258', job_id='514070', GAL2='0.60', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1632894988.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='3.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='798' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:56:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 514070: <4FGL_J2250.4-4206_daily_bin798> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin798> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:40:19 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:40:20 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:40:20 2021
Terminated at Tue Sep 28 22:56:29 2021
Results reported at Tue Sep 28 22:56:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin798 342.606 -42.1095 446169601 446428801 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 :                                   801.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            970 sec.

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

