/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 76 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 = 7037
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2250.4-4206_daily_bin109
RA = 342.606, Dec = -42.1095
tmin = 267580801, tmax = 267840001
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='509747', job_status='RUN', time_executed='2021-09-28 22:27:30.371752', time_epoch_executed='1632893250.37' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/509747

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/509747/ft1_4FGL_J2250.4-4206_daily_bin109.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/509747/ft2_4FGL_J2250.4-4206_daily_bin109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/509747/ft1_4FGL_J2250.4-4206_daily_bin109.fits outfile=/scratch/kocevski/509747/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin109.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=267580801.0 tmax=267840001.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 1.38
user 1.18
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/509747/ft1_filtered_4FGL_J2250.4-4206_daily_bin109.fits" evtable="EVENTS" scfile=/scratch/kocevski/509747/ft2_4FGL_J2250.4-4206_daily_bin109.fits sctable="SC_DATA" outfile=/scratch/kocevski/509747/ltcube_267580801_267840001_4FGL_J2250.4-4206_daily_bin109.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/509747/ft2_4FGL_J2250.4-4206_daily_bin109.fits
.....................!
real 12.14
user 11.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/509747/ft1_filtered_4FGL_J2250.4-4206_daily_bin109.fits evtable="EVENTS" scfile=/scratch/kocevski/509747/ft2_4FGL_J2250.4-4206_daily_bin109.fits sctable="SC_DATA" expcube=/scratch/kocevski/509747/ltcube_267580801_267840001_4FGL_J2250.4-4206_daily_bin109.fits outfile=/scratch/kocevski/509747/expmap_267580801_267840001_4FGL_J2250.4-4206_daily_bin109.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/509747/ltcube_267580801_267840001_4FGL_J2250.4-4206_daily_bin109.fits
.....................!
real 190.41
user 185.44
sys 4.53

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/509747/ft1_filtered_4FGL_J2250.4-4206_daily_bin109.fits scfile=/scratch/kocevski/509747/ft2_4FGL_J2250.4-4206_daily_bin109.fits outfile=/scratch/kocevski/509747/cmap_267580801_267840001_4FGL_J2250.4-4206_daily_bin109.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/509747/ft1_filtered_4FGL_J2250.4-4206_daily_bin109.fits scfile=/scratch/kocevski/509747/ft2_4FGL_J2250.4-4206_daily_bin109.fits outfile=/scratch/kocevski/509747/cmap_HighResolution_267580801_267840001_4FGL_J2250.4-4206_daily_bin109.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/509747/ft1_filtered_4FGL_J2250.4-4206_daily_bin109.fits evtable="EVENTS" scfile=/scratch/kocevski/509747/ft2_4FGL_J2250.4-4206_daily_bin109.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/509747/Model_4FGL_J2250.4-4206_daily_bin109.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/509747/ft1_filtered_4FGL_J2250.4-4206_daily_bin109.fits.....................!
real 45.14
user 43.89
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.8963       1.0000         .10000E-03   10000.    
     3 'Prefactor '    87.122       1.0000         .10000E-03   10000.    
     4 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.059       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0985       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3271       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6251       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.039       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.832       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.555       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.2359       1.0000         .10000E-03   10000.    
    21 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    20.562       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16447E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.936       1.0000         .10000E-03   10000.    
    26 'norm      '    12.749       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.1255       1.0000         .10000E-03   10000.    
    28 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    4.5185       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .96971       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .86796       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=   5874.618     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     4081 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.070        .39911E-06** at limit **
   2  Prefactor     6.8895        11.075        .12388E-05    .25139E-05
   3  Prefactor     87.232        122.44       -.71027E-05    .64661E-04
   4  norm          .10000E-03    6.2644        .70013E-07** at limit **
   5  Prefactor     11.060        8.4495        .16575E-07   -.11225E-05
   6  Prefactor     .10000E-03    1.0583        .13726E-07** at limit **
   7  Prefactor     .10000E-03    16.650       -.10315E-06** at limit **
   8  Prefactor     4.1024        5.5372        .92170E-06   -.66318E-04
   9  Prefactor     5.3246        19.705        .40603E-06   -.62653E-05
  10  Prefactor     .10000E-03    8.8808       -.24125E-06** at limit **
  11  Prefactor     2.6253        52.511        .12055E-06   -.78109E-07
  12  Prefactor     .10000E-03    4.9270       -.17664E-06** at limit **
  13  Prefactor     .10000E-03    22.720       -.11836E-07** at limit **
  14  Prefactor     11.043        12.078        .57901E-07    .78083E-06
  15  Prefactor     .10000E-03    3.0829       -.45387E-07** at limit **
  16  Prefactor     22.810        30.069        .17215E-05   -.70190E-04
  17  Prefactor     14.555        21.511        .34454E-07   -.35351E-06
  18  Prefactor     .10000E-03    5.4878        .55057E-07** at limit **
  19  norm          .10000E-03    4.4186        .25522E-07** at limit **
  20  norm          2.2396        5.8550        .49745E-06    .21065E-03
  21  norm          .10000E-03    2.6461       -.21977E-07** at limit **
  22  norm          20.561        8.8151        .54368E-07    .53713E-05
  23  Prefactor     .10000E-03    7.9473       -.15146E-05** at limit **
  24  Prefactor     .10000E-03    20.054       -.34461E-06** at limit **
  25  Prefactor     16.953        50.098       -.19763E-05    .23508E-04
  26  norm          12.753        5.3366       -.69236E-07    .67717E-04
  27  Prefactor     8.1244        17.843        .18894E-05    .39357E-03
  28  norm          .10000E-03    .63034       -.12287E-06** at limit **
  29  norm          4.5183        4.5151        .46693E-06   -.20904E-04
  30  Normalizat    .96947        .17920       -.49450E-06    .25400E-03
  31  Prefactor     .86822        .17048        .42753E-06    .15790E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.88946
  Prefactor  = 87.2319
  norm       = 0.0001
  Prefactor  = 11.0603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.10238
  Prefactor  = 5.32458
  Prefactor  = 0.0001
  Prefactor  = 2.62534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0429
  Prefactor  = 0.0001
  Prefactor  = 22.8097
  Prefactor  = 14.5546
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.23957
  norm       = 0.0001
  norm       = 20.5611
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.9535
  norm       = 12.7533
  Prefactor  = 8.12437
  norm       = 0.0001
  norm       = 4.51832
  Normalizat = 0.969472
  Prefactor  = 0.868216
 **********
 **   18 **HESSE 
 **********

 FCN=   5874.618     FROM HESSE     STATUS=OK           626 CALLS     4707 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.8895        10.920        .15278E-03   -1.5183    
   3  Prefactor     87.232        117.77        .21522E-03   -1.3837    
   4  norm          .10000E-03    6.4755        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.060        8.4569        .12047E-03   -1.5043    
   6  Prefactor     .10000E-03    1.0650        .76971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.1024        5.5441        .97374E-03   -1.5303    
   9  Prefactor     5.3246        19.676        .17413E-03   -1.5246    
  10  Prefactor     .10000E-03    8.8968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.6253        52.209        .25171E-03   -1.5384    
  12  Prefactor     .10000E-03    4.9462        .16596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.043        12.101        .12058E-03   -1.5043    
  15  Prefactor     .10000E-03    3.1052        .13140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.810        29.715        .83827E-04   -1.4752    
  17  Prefactor     14.555        21.508        .10499E-03   -1.4945    
  18  Prefactor     .10000E-03    5.4938        .17532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.4240        .15735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.2396        5.7789        .27490E-03   -1.5409    
  21  norm          .10000E-03    2.6527        .12160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          20.561        8.8122        .88329E-04   -1.4801    
  23  Prefactor     .10000E-03    23.633        .35091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     16.953        49.923        .97324E-04   -1.4884    
  26  norm          12.753        5.3349        .10456E-03   -1.4994    
  27  Prefactor     8.1244        16.762        .14065E-03   -1.5138    
  28  norm          .10000E-03    .97028        .11438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          4.5183        4.5057        .74876E-03   -1.5283    
  30  Normalizat    .96947        .21137        .23292E-03   -.94060    
  31  Prefactor     .86822        .20035        .24939E-03   -.97261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.58789e-10
Minuit parameter uncertainties:
  1  2.55906e-05
  2  10.9236
  3  118.086
  4  3.18107e-06
  5  8.45785
  6  9.4091e-07
  7  3.80142e-06
  8  5.54481
  9  19.6999
  10  8.68186e-06
  11  23.4381
  12  3.1658e-06
  13  1.69896e-06
  14  12.1038
  15  2.77969e-07
  16  29.7342
  17  21.5199
  18  5.37609e-06
  19  2.06347e-06
  20  5.7803
  21  4.99779e-08
  22  8.81277
  23  0.000251303
  24  1.5933e-05
  25  50.0465
  26  5.33509
  27  16.7715
  28  9.85443e-07
  29  4.50601
  30  0.211552
  31  0.200524
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.780e-07  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:  8.682e-01  2.005e-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:  9.695e-01  2.116e-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.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/509747/likelihoodResults_267580801_267840001_4FGL_J2250.4-4206_daily_bin109.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) = 5874.61998943
delta logL = -0.00153305474214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5874.61845638
delta logL = -1.4888428268e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0934       1.0000          .0000       10.000    
     3 'Normalizat'    .96947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86823       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.

 FCN=   5874.618     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      196 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.412        .90712E-02** at limit **
   2  Index         2.1006        8.8679        .50000       -.20236E-04
   3  Normalizat    .96947        .15941E-01    .45783E-01   -.32933E-04
   4  Prefactor     .86822        .16325E-01    .44599E-01   -.49671E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10057
  Normalizat = 0.96947
  Prefactor  = 0.868217
 **********
 **   18 **HESSE 
 **********

 FCN=   5874.618     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      229 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    260.49        .13163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1006        7.3756        .50000       -.61859    
   3  Normalizat    .96947        .41855E-01    .23292E-03   -.94060    
   4  Prefactor     .86822        .42862E-01    .24939E-03   -.97261    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.814e-08
Minuit parameter uncertainties:
  1  5.88871e-05
  2  37.4174
  3  0.0418562
  4  0.0428633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/509747': 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) = 5874.61845631
delta logL = 6.70406734571e-08

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  5.889e-05  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.101e+00  3.742e+01  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:  8.682e-01  4.286e-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:  9.695e-01  4.186e-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/509747/cmap_HighResolution_267580801_267840001_4FGL_J2250.4-4206_daily_bin109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.47e-03', job_status='DONE', photon_flux_upper_limit='4.59e-08', time_completed='2021-09-28 22:41:14.353240', job_id='509747', GAL2='0.87', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632894074.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='6.70e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='109' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:41:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 509747: <4FGL_J2250.4-4206_daily_bin109> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin109> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:26:02 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:26:04 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:26:04 2021
Terminated at Tue Sep 28 22:41:15 2021
Results reported at Tue Sep 28 22:41:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin109 342.606 -42.1095 267580801 267840001 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 :                                   823.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            913 sec.

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

