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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1284
RA = 342.606, Dec = -42.1095
tmin = 572140801, tmax = 572400001
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='515854', job_status='RUN', time_executed='2021-09-28 22:46:59.479610', time_epoch_executed='1632894419.48' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/515854

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/515854/ft1_4FGL_J2250.4-4206_daily_bin1284.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/515854/ft2_4FGL_J2250.4-4206_daily_bin1284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/515854/ft1_4FGL_J2250.4-4206_daily_bin1284.fits outfile=/scratch/kocevski/515854/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1284.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=572140801.0 tmax=572400001.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.21
user 3.02
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/515854/ft1_filtered_4FGL_J2250.4-4206_daily_bin1284.fits" evtable="EVENTS" scfile=/scratch/kocevski/515854/ft2_4FGL_J2250.4-4206_daily_bin1284.fits sctable="SC_DATA" outfile=/scratch/kocevski/515854/ltcube_572140801_572400001_4FGL_J2250.4-4206_daily_bin1284.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/515854/ft2_4FGL_J2250.4-4206_daily_bin1284.fits
.....................!
real 12.11
user 11.79
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/515854/ft1_filtered_4FGL_J2250.4-4206_daily_bin1284.fits evtable="EVENTS" scfile=/scratch/kocevski/515854/ft2_4FGL_J2250.4-4206_daily_bin1284.fits sctable="SC_DATA" expcube=/scratch/kocevski/515854/ltcube_572140801_572400001_4FGL_J2250.4-4206_daily_bin1284.fits outfile=/scratch/kocevski/515854/expmap_572140801_572400001_4FGL_J2250.4-4206_daily_bin1284.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/515854/ltcube_572140801_572400001_4FGL_J2250.4-4206_daily_bin1284.fits
.....................!
real 191.69
user 186.23
sys 5.13

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/515854/ft1_filtered_4FGL_J2250.4-4206_daily_bin1284.fits scfile=/scratch/kocevski/515854/ft2_4FGL_J2250.4-4206_daily_bin1284.fits outfile=/scratch/kocevski/515854/cmap_572140801_572400001_4FGL_J2250.4-4206_daily_bin1284.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.37
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/515854/ft1_filtered_4FGL_J2250.4-4206_daily_bin1284.fits evtable="EVENTS" scfile=/scratch/kocevski/515854/ft2_4FGL_J2250.4-4206_daily_bin1284.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/515854/Model_4FGL_J2250.4-4206_daily_bin1284.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/515854/ft1_filtered_4FGL_J2250.4-4206_daily_bin1284.fits.....................!
real 33.73
user 32.50
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10863E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10917E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10677E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11218E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.802       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15281E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5537       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10552E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14631E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .31102E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.798       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .27406E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    9.5354       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .38330       1.0000         .10000E-03   10000.    
    28 'norm      '    .10381E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    3.7688       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .83523       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2684       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3960.398     FROM MIGRAD    STATUS=FAILED      1521 CALLS     4989 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.381        .18142E-02** at limit **
   2  Prefactor     .10000E-03    11.087        .18142E-02** at limit **
   3  Prefactor     .10000E-03    45.336        .18142E-02** at limit **
   4  norm          .10000E-03    10.128        .18142E-02** at limit **
   5  Prefactor     .10000E-03    3.8926        .12113E-02** at limit **
   6  Prefactor     .10000E-03    4.2200        .12488E-02** at limit **
   7  Prefactor     26.532        83.049        .77382E-04    .19099E-05
   8  Prefactor     .10000E-03    3.0726        .10742E-02** at limit **
   9  Prefactor     .10000E-03    50.377        .10589    ** at limit **
  10  Prefactor     2.5172        110.40        .25550E-03    .41827E-05
  11  Prefactor     .10000E-03    17.987        .18142E-02** at limit **
  12  Prefactor     .10000E-03    19.382        .36285E-03** at limit **
  13  Prefactor     .10000E-03    36.574        .18142E-02** at limit **
  14  Prefactor     .10066E-03    24.980        .66797E-01** at limit **
  15  Prefactor     .10000E-03    5.9397        .14923E-02** at limit **
  16  Prefactor     .10000E-03    18.024        .18142E-02** at limit **
  17  Prefactor     .10000E-03    130.39        .21375E-02** at limit **
  18  Prefactor     .10000E-03    7.9418        .17299E-02** at limit **
  19  norm          10.806        15.067        .12192E-03    .18649E-06
  20  norm          .10000E-03    2.2965        .93133E-03** at limit **
  21  norm          .14436E-01    6.7560        .49089E-01    .94314E-04
  22  norm          9.5434        11.553        .12978E-03   -.21024E-05
  23  Prefactor     .10000E-03    2.9803        .10592E-02** at limit **
  24  Prefactor     .10000E-03    18.285        .18142E-02** at limit **
  25  Prefactor     .10000E-03    32.696        .18142E-02** at limit **
  26  norm          .10000E-03    2.6916        .10020E-02** at limit **
  27  Prefactor     .35605        83.718        .41789E-02    .86421E-03
  28  norm          .10000E-03    1.7308        .10811E-02** at limit **
  29  norm          3.7690        4.0686        .12784E-03   -.27790E-04
  30  Normalizat    .83575        .26414        .25426E-03    .14152E-04
  31  Prefactor     1.2681        .26934        .22180E-03    .96360E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3960.398     FROM SIMPLEX   STATUS=UNCHANGED   1688 CALLS     6677 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.381        .41146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.087        .39607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    45.336        .48359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    10.128        .30543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8926        .24262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2200        .34079E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.532        83.049        .12312E-05   -1.4677    
   8  Prefactor     .10000E-03    3.0726        .19718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    50.377        .17383E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5172        110.40        .12878E-05   -1.5391    
  11  Prefactor     .10000E-03    17.987        .11573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.382        .48955E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    36.574        .34991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10066E-03    24.980        .16375E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.9397        .19648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.024        .17695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    130.39        .24863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.9418        .33707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.806        15.067        .12628E-05   -1.5050    
  20  norm          .10000E-03    2.2965        .42354E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .14436E-01    6.7560        .13160E-05   -1.5684    
  22  norm          9.5434        11.553        .12662E-05   -1.5090    
  23  Prefactor     .10000E-03    2.9803        .86956E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.285        .10777E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    32.696        .44435E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.6916        .31074E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .35605        83.718        .13079E-05   -1.5589    
  28  norm          .10000E-03    1.7308        .14884E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          3.7690        4.0686        .12854E-05   -1.5320    
  30  Normalizat    .83575        .26414        .82863E-06   -.98756    
  31  Prefactor     1.2681        .26934        .70701E-06   -.84261    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3960.398     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     7306 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.382        .36285E-03** at limit **
   2  Prefactor     .10000E-03    11.095        .36285E-03** at limit **
   3  Prefactor     .10000E-03    45.337        .36285E-03** at limit **
   4  norm          .10000E-03    10.135        .36285E-03** at limit **
   5  Prefactor     .10000E-03    3.8927        .24225E-03** at limit **
   6  Prefactor     .10000E-03    4.2211        .24975E-03** at limit **
   7  Prefactor     26.532        82.912        .30953E-05   -.66113E-05
   8  Prefactor     .10000E-03    3.0729        .21484E-03** at limit **
   9  Prefactor     .10000E-03    48.323        .10871    ** at limit **
  10  Prefactor     2.5171        110.12        .10220E-04   -.13349E-04
  11  Prefactor     .10000E-03    17.989        .36285E-03** at limit **
  12  Prefactor     .10000E-03    19.383        .72569E-04** at limit **
  13  Prefactor     .10000E-03    36.575        .36285E-03** at limit **
  14  Prefactor     .10038E-03    20.537        .75239E-01** at limit **
  15  Prefactor     .10000E-03    5.9407        .29847E-03** at limit **
  16  Prefactor     .10000E-03    18.024        .36285E-03** at limit **
  17  Prefactor     .10000E-03    130.41        .42749E-03** at limit **
  18  Prefactor     .10000E-03    7.9425        .34597E-03** at limit **
  19  norm          10.806        15.061        .48770E-05   -.18649E-05
  20  norm          .10000E-03    2.2965        .18627E-03** at limit **
  21  norm          .14440E-01    6.6827        .49489E-01    .96372E-04
  22  norm          9.5434        11.551        .51911E-05    .29346E-04
  23  Prefactor     .10000E-03    2.9803        .21183E-03** at limit **
  24  Prefactor     .10000E-03    18.285        .36285E-03** at limit **
  25  Prefactor     .10000E-03    32.697        .36285E-03** at limit **
  26  norm          .10000E-03    2.6920        .20040E-03** at limit **
  27  Prefactor     .35608        84.710        .83577E-03    .20390E-04
  28  norm          .10000E-03    1.7388        .21622E-03** at limit **
  29  norm          3.7690        4.0685        .51137E-05    .13206E-03
  30  Normalizat    .83575        .26386        .10170E-04    .12117E-03
  31  Prefactor     1.2681        .26961        .88722E-05    .14390E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.5317
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 2.51707
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100381
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 10.8058
  norm       = 0.0001
  norm       = 0.0144396
  norm       = 9.54343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.356083
  norm       = 0.0001
  norm       = 3.76905
  Normalizat = 0.835748
  Prefactor  = 1.26809
 **********
 **   18 **HESSE 
 **********

 FCN=   3960.398     FROM HESSE     STATUS=OK           622 CALLS     7928 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.382        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.096        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    45.337        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    10.135        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8927        .48451E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2211        .49950E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.532        82.213        .61905E-06   -1.4677    
   8  Prefactor     .10000E-03    3.0729        .42968E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    49.047        .10765       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5171        109.12        .20440E-05   -1.5391    
  11  Prefactor     .10000E-03    17.989        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.383        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    36.575        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10038E-03    22.232        .71664E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.9408        .59694E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.024        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    130.41        .85498E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.9425        .69195E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.806        15.056        .97540E-06   -1.5050    
  20  norm          .10000E-03    2.2965        .37253E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .14440E-01    6.6977        .49405E-01   -1.5684    
  22  norm          9.5434        11.547        .10382E-05   -1.5090    
  23  Prefactor     .10000E-03    2.9803        .42367E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.285        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    32.697        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.6920        .40080E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .35608        84.568        .33431E-04   -1.5589    
  28  norm          .10000E-03    1.7391        .43244E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          3.7690        4.0681        .10227E-05   -1.5320    
  30  Normalizat    .83575        .26373        .20341E-05   -.98756    
  31  Prefactor     1.2681        .26930        .17744E-05   -.84261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04374e-10
Minuit parameter uncertainties:
  1  0.000121921
  2  6.57971e-05
  3  0.0001407
  4  2.85922e-05
  5  1.68331e-06
  6  1.95951e-05
  7  82.5666
  8  2.68365e-06
  9  0.000729976
  10  33.2094
  11  0.000108898
  12  0.000212995
  13  9.11859e-05
  14  0.00582154
  15  1.05133e-05
  16  7.83437e-05
  17  0.00124829
  18  2.36209e-07
  19  15.061
  20  2.18961e-07
  21  0.619882
  22  11.5498
  23  3.72995e-06
  24  5.53612e-05
  25  3.86288e-05
  26  1.79432e-05
  27  10.9893
  28  2.01205e-06
  29  4.06844
  30  0.264138
  31  0.269599
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.051e-05  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.086e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.783e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.268e+00  2.696e-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:  8.357e-01  2.641e-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: 7.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/515854/likelihoodResults_572140801_572400001_4FGL_J2250.4-4206_daily_bin1284.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) = 3960.39889599
delta logL = -0.000801387299362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3960.3980946
delta logL = 9.16315912036e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0959       1.0000          .0000       10.000    
     3 'Normalizat'    .83576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2681       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=   3960.398     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    119.09        .90712E-02** at limit **
   2  Index         2.1057        8.7525        .50000       -.13598E-04
   3  Normalizat    .83575        .23319E-01    .44075E-01   -.30287E-04
   4  Prefactor     1.2681        .24611E-01    .50172E-01   -.23834E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10566
  Normalizat = 0.835747
  Prefactor  = 1.26809
 **********
 **   18 **HESSE 
 **********

 FCN=   3960.398     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      236 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1065.3        .14978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1057        6.0436        .50000       -.61734    
   3  Normalizat    .83575        .10212        .25425E-03   -.98756    
   4  Prefactor     1.2681        .10775        .22181E-03   -.84261    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.85802e-08
Minuit parameter uncertainties:
  1  0.000425338
  2  55.4716
  3  0.102139
  4  0.10777
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/515854': 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) = 3960.39809454
delta logL = 6.36900949758e-08

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  4.253e-04  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.106e+00  5.547e+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:  1.268e+00  1.078e-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:  8.357e-01  1.021e-01  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/515854/cmap_HighResolution_572140801_572400001_4FGL_J2250.4-4206_daily_bin1284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-03', job_status='DONE', photon_flux_upper_limit='7.69e-08', time_completed='2021-09-28 23:00:43.378050', job_id='515854', GAL2='1.27', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632895243.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='6.37e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1284' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 23:00:43 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1284 342.606 -42.1095 572140801 572400001 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 :                                   819.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            909 sec.

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

