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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1468
RA = 342.606, Dec = -42.1095
tmin = 619833601, tmax = 620092801
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='517173', job_status='RUN', time_executed='2021-09-28 22:50:35.471097', time_epoch_executed='1632894635.47' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/517173

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/517173/ft1_4FGL_J2250.4-4206_daily_bin1468.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/517173/ft2_4FGL_J2250.4-4206_daily_bin1468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/517173/ft1_4FGL_J2250.4-4206_daily_bin1468.fits outfile=/scratch/kocevski/517173/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1468.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=619833601.0 tmax=620092801.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.44
user 3.23
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/517173/ft1_filtered_4FGL_J2250.4-4206_daily_bin1468.fits" evtable="EVENTS" scfile=/scratch/kocevski/517173/ft2_4FGL_J2250.4-4206_daily_bin1468.fits sctable="SC_DATA" outfile=/scratch/kocevski/517173/ltcube_619833601_620092801_4FGL_J2250.4-4206_daily_bin1468.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/517173/ft2_4FGL_J2250.4-4206_daily_bin1468.fits
.....................!
real 11.92
user 11.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/517173/ft1_filtered_4FGL_J2250.4-4206_daily_bin1468.fits evtable="EVENTS" scfile=/scratch/kocevski/517173/ft2_4FGL_J2250.4-4206_daily_bin1468.fits sctable="SC_DATA" expcube=/scratch/kocevski/517173/ltcube_619833601_620092801_4FGL_J2250.4-4206_daily_bin1468.fits outfile=/scratch/kocevski/517173/expmap_619833601_620092801_4FGL_J2250.4-4206_daily_bin1468.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/517173/ltcube_619833601_620092801_4FGL_J2250.4-4206_daily_bin1468.fits
.....................!
real 190.48
user 184.89
sys 5.27

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/517173/ft1_filtered_4FGL_J2250.4-4206_daily_bin1468.fits scfile=/scratch/kocevski/517173/ft2_4FGL_J2250.4-4206_daily_bin1468.fits outfile=/scratch/kocevski/517173/cmap_619833601_620092801_4FGL_J2250.4-4206_daily_bin1468.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/517173/ft1_filtered_4FGL_J2250.4-4206_daily_bin1468.fits scfile=/scratch/kocevski/517173/ft2_4FGL_J2250.4-4206_daily_bin1468.fits outfile=/scratch/kocevski/517173/cmap_HighResolution_619833601_620092801_4FGL_J2250.4-4206_daily_bin1468.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9889       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4778       1.0000         .10000E-03   10000.    
     7 'Prefactor '    48.803       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.771       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9159       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10612E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    56.873       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4388       1.0000         .10000E-03   10000.    
    16 'Prefactor '    54.041       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    23.512       1.0000         .10000E-03   10000.    
    20 'norm      '    3.1802       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.0004       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    24.264       1.0000         .10000E-03   10000.    
    28 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0531       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .97345       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=   5118.006     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     4085 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.213        .17567E-04** at limit **
   2  Prefactor     .10000E-03    7.6067       -.48352E-06** at limit **
   3  Prefactor     .10000E-03    24.203       -.11430E-04** at limit **
   4  norm          .10000E-03    2.5459        .23468E-07** at limit **
   5  Prefactor     1.9885        11.873       -.11336E-05   -.29128E-03
   6  Prefactor     2.4772        4.9501        .17590E-05   -.58836E-03
   7  Prefactor     48.804        60.156        .61045E-06   -.48770E-05
   8  Prefactor     .10000E-03    2.7101       -.30765E-07** at limit **
   9  Prefactor     21.770        23.767        .63386E-06    .17758E-04
  10  Prefactor     4.9105        56.121       -.10981E-04   -.25366E-04
  11  Prefactor     .10000E-03    29.859       -.51799E-05** at limit **
  12  Prefactor     .10000E-03    9.8707        .20478E-05** at limit **
  13  Prefactor     56.905        56.521        .29902E-04    .22575E-05
  14  Prefactor     .10000E-03    4.3812       -.92017E-08** at limit **
  15  Prefactor     9.4375        10.417        .34012E-06   -.93386E-04
  16  Prefactor     54.041        42.763       -.11028E-05   -.35945E-04
  17  Prefactor     .10000E-03    23.026       -.77384E-05** at limit **
  18  Prefactor     .10000E-03    17.627        .12339E-04** at limit **
  19  norm          23.506        15.607        .85490E-06   -.14589E-03
  20  norm          3.1734        5.7901       -.87460E-06   -.65396E-03
  21  norm          .10000E-03    1.5749        .28164E-07** at limit **
  22  norm          .10000E-03    2.9595        .33070E-07** at limit **
  23  Prefactor     1.0303        24.014        .32462E-05   -.70054E-03
  24  Prefactor     .10000E-03    13.256       -.10353E-04** at limit **
  25  Prefactor     .10000E-03    15.288        .61873E-05** at limit **
  26  norm          .10000E-03    1.9902        .40674E-07** at limit **
  27  Prefactor     24.178        27.321       -.27305E-05   -.78925E-03
  28  norm          .10000E-03    .34501        .44835E-08** at limit **
  29  norm          .10000E-03    1.3873        .14965E-07** at limit **
  30  Normalizat    1.0533        .20012        .64144E-07   -.34010E-03
  31  Prefactor     .97335        .20050       -.45785E-06   -.25421E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.98852
  Prefactor  = 2.47721
  Prefactor  = 48.8036
  Prefactor  = 0.0001
  Prefactor  = 21.7699
  Prefactor  = 4.91053
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 56.9048
  Prefactor  = 0.0001
  Prefactor  = 9.43753
  Prefactor  = 54.0407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.5056
  norm       = 3.17337
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.03031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.1777
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.05326
  Prefactor  = 0.973346
 **********
 **   18 **HESSE 
 **********

 FCN=   5118.006     FROM HESSE     STATUS=OK           608 CALLS     4693 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.7256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.5479        .11148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9885        11.801        .29380E-03   -1.5426    
   6  Prefactor     2.4772        4.8866        .20265E-03   -1.5393    
   7  Prefactor     48.804        59.793        .57401E-04   -1.4310    
   8  Prefactor     .10000E-03    2.7379        .11497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.770        23.674        .85844E-04   -1.4774    
  10  Prefactor     4.9105        55.568        .18140E-03   -1.5265    
  11  Prefactor     .10000E-03    30.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     56.905        56.437        .26597E-03   -1.4198    
  14  Prefactor     .10000E-03    4.3948        .14624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.4375        10.399        .13044E-03   -1.5093    
  16  Prefactor     54.041        42.767        .54562E-04   -1.4236    
  17  Prefactor     .10000E-03    23.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          23.506        15.524        .82608E-04   -1.4738    
  20  norm          3.1734        5.6308        .21413E-03   -1.5352    
  21  norm          .10000E-03    1.5757        .87681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.9686        .12019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.0303        35.340        .34622E-02   -1.5505    
  24  Prefactor     .10000E-03    13.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.0116        .98512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     24.178        24.026        .81320E-04   -1.4724    
  28  norm          .10000E-03    .35081        .40940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    1.3946        .82274E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0533        .23760        .23442E-03   -.91267    
  31  Prefactor     .97335        .23858        .25033E-03   -.93623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06972e-09
Minuit parameter uncertainties:
  1  3.86869e-05
  2  1.09579e-05
  3  3.9047e-06
  4  6.39437e-07
  5  9.69105
  6  4.88734
  7  59.8667
  8  7.92837e-06
  9  23.6844
  10  33.0759
  11  0.00025339
  12  0.00014789
  13  56.4897
  14  2.91594e-06
  15  10.4007
  16  42.7916
  17  1.14581e-05
  18  9.02546e-05
  19  15.5269
  20  5.63175
  21  4.50163e-07
  22  9.12766e-07
  23  12.0754
  24  8.38909e-06
  25  6.0831e-07
  26  3.12511e-06
  27  24.0352
  28  4.72419e-07
  29  1.2257e-06
  30  0.237844
  31  0.238838
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  9.438e+00  1.040e+01  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:  9.733e-01  2.388e-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.053e+00  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 342.606 -42.109
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 3.54e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 2.21e-05

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

Saving results to:
/scratch/kocevski/517173/likelihoodResults_619833601_620092801_4FGL_J2250.4-4206_daily_bin1468.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) = 5117.1090738
delta logL = 0.896707282669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5117.09286018
delta logL = 0.912920907722

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1356       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0040       1.0000          .0000       10.000    
     3 'Normalizat'    .98056       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0189       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=   5117.093     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      243 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1283        37.912        .57234E-02    .37477E-03
   2  Index         3.0051        2.3874        .93453E-01    .15066E-03
   3  Normalizat    .98054        .63396E-01    .45923E-01    .41349E-05
   4  Prefactor     1.0189        .62644E-01    .42254E-01    .52687E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.12833
  Index      = 3.00511
  Normalizat = 0.98054
  Prefactor  = 1.01889
 **********
 **   18 **HESSE 
 **********

 FCN=   5117.093     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1283        10.652        .79420E-04   -1.5354    
   2  Index         3.0051        1.4375        .35224E-02   -.41040    
   3  Normalizat    .98054        .24125        .24162E-03   -.93685    
   4  Prefactor     1.0189        .24545        .24512E-03   -.92102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71837e-08
Minuit parameter uncertainties:
  1  10.6582
  2  1.46215
  3  0.241517
  4  0.245715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/517173': 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): 0
logL (Free Index) = 5117.09285906
delta logL = 0.912922025381

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  3.128e+00  1.066e+01  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  3.005e+00  1.462e+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:  1.019e+00  2.457e-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.805e-01  2.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.99
Ra Dec: 342.606 -42.109
Photon Index (Free Index): 3.01 +/- 1.46
Photon Flux (Free Index): 8.99e-08 +/- 6.23e-08
Energy Flux (Free Index): 1.79e-05 +/- 1.59e-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/517173/cmap_HighResolution_619833601_620092801_4FGL_J2250.4-4206_daily_bin1468.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.87e-03', comment='SUCCESS', photon_flux='3.54e-08', energy_flux2='1.79e-05', photon_flux_error='3.90e-08', dlogl='9.13e-01', energy_flux='2.00e-05', photon_flux2='8.99e-08', job_status='DONE', time_completed='2021-09-28 23:03:35.255340', photon_index_error2='1.46', photon_index2='3.01', ts='1.08', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.59e-05', EG='1.05', time_epoch_completed='1632895415.26', return_code='0', job_id='517173', GAL2='1.02', EG2='0.98', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='6.23e-08', ts2='2.99', photon_index='2.09' WHERE bin_id='1468' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 23:03:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 517173: <4FGL_J2250.4-4206_daily_bin1468> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin1468> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:50:14 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:50:15 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:50:15 2021
Terminated at Tue Sep 28 23:03:36 2021
Results reported at Tue Sep 28 23:03:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1468 342.606 -42.1095 619833601 620092801 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 :                                   768.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            802 sec.

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

