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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin599
RA = 342.606, Dec = -42.1095
tmin = 394588801, tmax = 394848001
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='512661', job_status='RUN', time_executed='2021-09-28 22:38:19.224022', time_epoch_executed='1632893899.22' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/512661

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/512661/ft1_4FGL_J2250.4-4206_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/512661/ft2_4FGL_J2250.4-4206_daily_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/512661/ft1_4FGL_J2250.4-4206_daily_bin599.fits outfile=/scratch/kocevski/512661/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin599.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=394588801.0 tmax=394848001.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.54
user 4.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/512661/ft2_4FGL_J2250.4-4206_daily_bin599.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/512661/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin599.fits evtable="EVENTS" outfile="/scratch/kocevski/512661/ft1_filtered_4FGL_J2250.4-4206_daily_bin599.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/512661/ft1_filtered_4FGL_J2250.4-4206_daily_bin599.fits" evtable="EVENTS" scfile=/scratch/kocevski/512661/ft2_4FGL_J2250.4-4206_daily_bin599.fits sctable="SC_DATA" outfile=/scratch/kocevski/512661/ltcube_394588801_394848001_4FGL_J2250.4-4206_daily_bin599.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/512661/ft2_4FGL_J2250.4-4206_daily_bin599.fits
.....................!
real 11.67
user 11.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/512661/ft1_filtered_4FGL_J2250.4-4206_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/512661/ft2_4FGL_J2250.4-4206_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/512661/ltcube_394588801_394848001_4FGL_J2250.4-4206_daily_bin599.fits outfile=/scratch/kocevski/512661/expmap_394588801_394848001_4FGL_J2250.4-4206_daily_bin599.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/512661/ltcube_394588801_394848001_4FGL_J2250.4-4206_daily_bin599.fits
.....................!
real 192.13
user 187.38
sys 4.43

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/512661/ft1_filtered_4FGL_J2250.4-4206_daily_bin599.fits scfile=/scratch/kocevski/512661/ft2_4FGL_J2250.4-4206_daily_bin599.fits outfile=/scratch/kocevski/512661/cmap_394588801_394848001_4FGL_J2250.4-4206_daily_bin599.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/512661/ft1_filtered_4FGL_J2250.4-4206_daily_bin599.fits scfile=/scratch/kocevski/512661/ft2_4FGL_J2250.4-4206_daily_bin599.fits outfile=/scratch/kocevski/512661/cmap_HighResolution_394588801_394848001_4FGL_J2250.4-4206_daily_bin599.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/512661/ft1_filtered_4FGL_J2250.4-4206_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/512661/ft2_4FGL_J2250.4-4206_daily_bin599.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/512661/Model_4FGL_J2250.4-4206_daily_bin599.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/512661/ft1_filtered_4FGL_J2250.4-4206_daily_bin599.fits.....................!
real 35.76
user 34.48
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.829       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    87.482       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2293       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.761       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10463E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0994       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.237       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8655       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7469       1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   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      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    34.372       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    8.5035       1.0000         .10000E-03   10000.    
    29 'norm      '    1.9075       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.4167       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .68812       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=   4115.880     FROM MIGRAD    STATUS=CONVERGED    798 CALLS     4142 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.833        47.600        .10190E-04   -.28333E-04
   2  Prefactor     .10000E-03    5.9785        .69638E-06** at limit **
   3  Prefactor     87.469        115.14       -.12698E-04   -.40971E-04
   4  norm          .10000E-03    3.0965        .71136E-07** at limit **
   5  Prefactor     .10000E-03    4.5849       -.96298E-06** at limit **
   6  Prefactor     2.2290        4.8055       -.38234E-06   -.59659E-03
   7  Prefactor     12.764        83.847        .76562E-05   -.21769E-05
   8  Prefactor     .10014E-03    8.7785        .31316E-05** at limit **
   9  Prefactor     7.1053        41.387        .85954E-05   -.65132E-06
  10  Prefactor     .10000E-03    40.477       -.74590E-05** at limit **
  11  Prefactor     37.218        36.592       -.11430E-04   -.29488E-03
  12  Prefactor     .10000E-03    8.1579        .44211E-06** at limit **
  13  Prefactor     .10000E-03    53.400        .11758E-04** at limit **
  14  Prefactor     .10000E-03    5.5606       -.12994E-05** at limit **
  15  Prefactor     2.8689        9.7845       -.13193E-05   -.24667E-03
  16  Prefactor     .10000E-03    26.878        .34029E-05** at limit **
  17  Prefactor     .10000E-03    49.187        .75276E-05** at limit **
  18  Prefactor     5.7543        19.311        .14633E-05   -.61131E-04
  19  norm          .10000E-03    4.8575        .11557E-05** at limit **
  20  norm          .10000E-03    2.8762       -.11798E-07** at limit **
  21  norm          .10000E-03    3.7308       -.80083E-07** at limit **
  22  norm          .10000E-03    3.5044       -.15206E-06** at limit **
  23  Prefactor     .10000E-03    2.6567       -.58311E-08** at limit **
  24  Prefactor     34.393        37.015        .16713E-04    .16823E-04
  25  Prefactor     .10000E-03    40.024       -.81857E-05** at limit **
  26  norm          .10000E-03    5.0705       -.54087E-06** at limit **
  27  Prefactor     .10000E-03    16.101       -.40374E-06** at limit **
  28  norm          8.5042        2.4374        .12005E-07   -.15021E-03
  29  norm          1.9081        3.4613       -.11000E-05   -.42848E-03
  30  Normalizat    1.4162        .24388       -.12840E-05   -.27459E-03
  31  Prefactor     .68850        .22736       -.10107E-06   -.25605E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8333
  Prefactor  = 0.0001
  Prefactor  = 87.4687
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.22898
  Prefactor  = 12.7644
  Prefactor  = 0.000100139
  Prefactor  = 7.10532
  Prefactor  = 0.0001
  Prefactor  = 37.218
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.86892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.75434
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.3932
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 8.50418
  norm       = 1.90807
  Normalizat = 1.41616
  Prefactor  = 0.688499
 **********
 **   18 **HESSE 
 **********

 FCN=   4115.880     FROM HESSE     STATUS=OK           614 CALLS     4756 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.833        47.438        .12175E-03   -1.5050    
   2  Prefactor     .10000E-03    5.9910        .15310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     87.469        115.06        .42955E-04   -1.3835    
   4  norm          .10000E-03    3.0973        .11026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6010        .13414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2290        4.7581        .19282E-03   -1.5409    
   7  Prefactor     12.764        83.325        .11213E-03   -1.4993    
   8  Prefactor     .10014E-03    67.301        .35195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.1053        41.272        .15055E-03   -1.5175    
  10  Prefactor     .10000E-03    40.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.218        36.469        .65679E-04   -1.4487    
  12  Prefactor     .10000E-03    8.1893        .17895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    53.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.5664        .14773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8689        9.7760        .24014E-03   -1.5369    
  16  Prefactor     .10000E-03    26.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    49.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.7543        19.289        .16755E-03   -1.5228    
  19  norm          .10000E-03    4.8573        .13808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.8773        .10626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.7529        .12100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.5088        .11729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.6599        .10211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     34.393        36.873        .68352E-04   -1.4534    
  25  Prefactor     .10000E-03    39.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    5.1977        .28178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    16.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          8.5042        2.4393        .50109E-04   -1.5125    
  29  norm          1.9081        3.4358        .15491E-03   -1.5432    
  30  Normalizat    1.4162        .30149        .22637E-03   -.80162    
  31  Prefactor     .68850        .27802        .30149E-03   -1.0398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66143e-09
Minuit parameter uncertainties:
  1  45.3999
  2  3.44705e-05
  3  115.352
  4  7.03091e-06
  5  3.60256e-06
  6  4.75889
  7  65.3582
  8  0.00611382
  9  34.2849
  10  0.000181113
  11  36.4904
  12  0.000128881
  13  0.000148211
  14  5.89642e-07
  15  9.78139
  16  5.91711e-05
  17  2.28207e-05
  18  19.3094
  19  1.79099e-06
  20  1.95709e-07
  21  5.93545e-05
  22  2.1148e-06
  23  7.22456e-07
  24  36.8976
  25  4.92392e-06
  26  0.000224401
  27  1.1796e-05
  28  2.43932
  29  3.43616
  30  0.301868
  31  0.27858
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  2.869e+00  9.781e+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

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  6.885e-01  2.786e-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.416e+00  3.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 342.606 -42.109
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/512661/likelihoodResults_394588801_394848001_4FGL_J2250.4-4206_daily_bin599.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): 0
logL (Free Index) = 4115.01831297
delta logL = 0.861790438797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4114.99848821
delta logL = 0.881615190256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80278       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5634       1.0000          .0000       10.000    
     3 'Normalizat'    1.3124       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75033       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=   4114.998     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      303 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79944        11.435        .10326E-01    .22932E-03
   2  Index         3.5650        2.3585        .97149E-01    .87174E-04
   3  Normalizat    1.3127        .57005E-01    .52807E-01   -.60113E-04
   4  Prefactor     .75003        .55170E-01    .65487E-01   -.37222E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.799443
  Index      = 3.56501
  Normalizat = 1.3127
  Prefactor  = 0.750027
 **********
 **   18 **HESSE 
 **********

 FCN=   4114.998     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      334 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79944        27.070        .46743E-04   -1.5529    
   2  Index         3.5650        4.0070        .35568E-02   -.29109    
   3  Normalizat    1.3127        .28083        .23348E-03   -.83188    
   4  Prefactor     .75003        .27016        .28972E-03   -1.0160    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.39805e-07
Minuit parameter uncertainties:
  1  9.30799
  2  4.74678
  3  0.281162
  4  0.270635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/512661': 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) = 4114.99848651
delta logL = 0.881616889395

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  7.994e-01  9.308e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  3.565e+00  4.747e+00  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:  7.500e-01  2.706e-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.313e+00  2.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.96
Ra Dec: 342.606 -42.109
Photon Index (Free Index): 3.57 +/- 4.75
Photon Flux (Free Index): 9.02e-08 +/- 7.91e-08
Energy Flux (Free Index): 1.48e-05 +/- 1.90e-05

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/512661/cmap_HighResolution_394588801_394848001_4FGL_J2250.4-4206_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.17e-03', comment='SUCCESS', energy_flux2='1.48e-05', dlogl='8.82e-01', photon_flux2='9.02e-08', job_status='DONE', time_completed='2021-09-28 22:49:44.483491', photon_index_error2='4.75', photon_index2='3.57', ts='0.11', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.90e-05', EG='1.42', time_epoch_completed='1632894584.48', return_code='0', job_id='512661', GAL2='0.75', EG2='1.31', return_code2='102', photon_flux_error2='7.91e-08', ts2='1.96', photon_index='2.09' WHERE bin_id='599' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:49:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 512661: <4FGL_J2250.4-4206_daily_bin599> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin599> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:35:29 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:35:30 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:35:30 2021
Terminated at Tue Sep 28 22:49:45 2021
Results reported at Tue Sep 28 22:49:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin599 342.606 -42.1095 394588801 394848001 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 :                                   685.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

