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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1640
RA = 342.606, Dec = -42.1095
tmin = 664416001, tmax = 664675201
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='284932', job_status='RUN', time_executed='2022-01-24 00:42:05.235085', time_epoch_executed='1643013725.24' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284932

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284932/ft1_4FGL_J2250.4-4206_daily_bin1640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/284932/ft2_4FGL_J2250.4-4206_daily_bin1640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284932/ft1_4FGL_J2250.4-4206_daily_bin1640.fits outfile=/scratch/kocevski/284932/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1640.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=664416001.0 tmax=664675201.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.70
user 3.36
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/284932/ft1_filtered_4FGL_J2250.4-4206_daily_bin1640.fits" evtable="EVENTS" scfile=/scratch/kocevski/284932/ft2_4FGL_J2250.4-4206_daily_bin1640.fits sctable="SC_DATA" outfile=/scratch/kocevski/284932/ltcube_664416001_664675201_4FGL_J2250.4-4206_daily_bin1640.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/284932/ft2_4FGL_J2250.4-4206_daily_bin1640.fits
.....................!
real 12.23
user 11.85
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284932/ft1_filtered_4FGL_J2250.4-4206_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/284932/ft2_4FGL_J2250.4-4206_daily_bin1640.fits sctable="SC_DATA" expcube=/scratch/kocevski/284932/ltcube_664416001_664675201_4FGL_J2250.4-4206_daily_bin1640.fits outfile=/scratch/kocevski/284932/expmap_664416001_664675201_4FGL_J2250.4-4206_daily_bin1640.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/284932/ltcube_664416001_664675201_4FGL_J2250.4-4206_daily_bin1640.fits
.....................!
real 193.04
user 187.20
sys 5.36

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/284932/ft1_filtered_4FGL_J2250.4-4206_daily_bin1640.fits scfile=/scratch/kocevski/284932/ft2_4FGL_J2250.4-4206_daily_bin1640.fits outfile=/scratch/kocevski/284932/cmap_664416001_664675201_4FGL_J2250.4-4206_daily_bin1640.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/284932/ft1_filtered_4FGL_J2250.4-4206_daily_bin1640.fits scfile=/scratch/kocevski/284932/ft2_4FGL_J2250.4-4206_daily_bin1640.fits outfile=/scratch/kocevski/284932/cmap_HighResolution_664416001_664675201_4FGL_J2250.4-4206_daily_bin1640.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/284932/ft1_filtered_4FGL_J2250.4-4206_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/284932/ft2_4FGL_J2250.4-4206_daily_bin1640.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/284932/Model_4FGL_J2250.4-4206_daily_bin1640.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/284932/ft1_filtered_4FGL_J2250.4-4206_daily_bin1640.fits.....................!
real 37.19
user 35.83
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63422       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.0037       1.0000         .10000E-03   10000.    
     3 'Prefactor '    111.82       1.0000         .10000E-03   10000.    
     4 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.114       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11190E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    59.850       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11555E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.559       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.755       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.971       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.0991       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3216       1.0000         .10000E-03   10000.    
    24 'Prefactor '    40.560       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .90251       1.0000         .10000E-03   10000.    
    29 'norm      '    5.1804       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2200       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .84018       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=   4304.423     FROM MIGRAD    STATUS=CONVERGED    802 CALLS     4123 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56548        25.172       -.10667E-05    .12171E-03
   2  Prefactor     5.0137        14.229        .78360E-06    .39017E-04
   3  Prefactor     111.84        134.11       -.18820E-06    .17434E-04
   4  norm          .10000E-03    5.8390        .71600E-08** at limit **
   5  Prefactor     .10000E-03    8.0963       -.38850E-07** at limit **
   6  Prefactor     .10000E-03    2.4720       -.56280E-07** at limit **
   7  Prefactor     .10000E-03    17.252       -.11232E-06** at limit **
   8  Prefactor     .10000E-03    9.6023        .13821E-06** at limit **
   9  Prefactor     32.091        37.326        .10327E-05   -.24792E-04
  10  Prefactor     .10000E-03    29.767        .36537E-06** at limit **
  11  Prefactor     59.855        40.596       -.95003E-06   -.22155E-04
  12  Prefactor     .10000E-03    41.561       -.12493E-05** at limit **
  13  Prefactor     .10000E-03    39.679       -.41935E-06** at limit **
  14  Prefactor     14.550        20.978        .67128E-06    .20264E-04
  15  Prefactor     17.753        10.471        .20550E-06   -.11706E-04
  16  Prefactor     13.054        41.614        .12705E-05    .71240E-04
  17  Prefactor     .10000E-03    38.149       -.43544E-06** at limit **
  18  Prefactor     .10000E-03    8.3212       -.50169E-07** at limit **
  19  norm          .10000E-03    6.1783        .98140E-08** at limit **
  20  norm          .10000E-03    10.367        .28893E-07** at limit **
  21  norm          .10000E-03    2.0418        .66390E-07** at limit **
  22  norm          6.0945        15.098        .66324E-05    .32897E-04
  23  Prefactor     4.3215        4.2820       -.51923E-07   -.43639E-04
  24  Prefactor     40.595        51.993        .56616E-06    .38827E-04
  25  Prefactor     .10000E-03    54.905        .65073E-06** at limit **
  26  norm          .10000E-03    2.4033        .31470E-06** at limit **
  27  Prefactor     .10000E-03    4.8247        .12956E-07** at limit **
  28  norm          .90242        1.1173        .29606E-06    .29360E-03
  29  norm          5.1788        4.9649        .25153E-07   -.57068E-04
  30  Normalizat    1.2200        .24891       -.29766E-05    .92550E-04
  31  Prefactor     .84022        .22705        .15667E-05   -.65752E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.565481
  Prefactor  = 5.01369
  Prefactor  = 111.837
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.091
  Prefactor  = 0.000100001
  Prefactor  = 59.8554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.55
  Prefactor  = 17.7535
  Prefactor  = 13.0543
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.09449
  Prefactor  = 4.32155
  Prefactor  = 40.595
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.902417
  norm       = 5.17885
  Normalizat = 1.21998
  Prefactor  = 0.84022
 **********
 **   18 **HESSE 
 **********

 FCN=   4304.423     FROM HESSE     STATUS=OK           618 CALLS     4741 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56548        377.94        .61279E-02   -1.5558    
   2  Prefactor     5.0137        14.036        .17978E-03   -1.5260    
   3  Prefactor     111.84        133.02        .38040E-04   -1.3589    
   4  norm          .10000E-03    5.9123        .15482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.1414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.5057        .10066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.7981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.091        37.356        .70707E-04   -1.4574    
  10  Prefactor     .10000E-03    29.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     59.855        40.590        .51862E-04   -1.4159    
  12  Prefactor     .10000E-03    42.463        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    39.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.550        21.076        .10497E-03   -1.4945    
  15  Prefactor     17.753        10.482        .95052E-04   -1.4865    
  16  Prefactor     13.054        41.610        .11122E-03   -1.4985    
  17  Prefactor     .10000E-03    38.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.3420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.1819        .15928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    10.567        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.0419        .91550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.0945        15.126        .81284E-03   -1.5214    
  23  Prefactor     4.3215        4.2884        .13097E-03   -1.5292    
  24  Prefactor     40.595        52.338        .62940E-04   -1.4433    
  25  Prefactor     .10000E-03    54.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.4043        .99161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.8282        .14074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .90242        1.0675        .74190E-03   -1.5518    
  29  norm          5.1788        4.9551        .13418E-03   -1.5253    
  30  Normalizat    1.2200        .29591        .24021E-03   -.85987    
  31  Prefactor     .84022        .27229        .27724E-03   -.98262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35523e-09
Minuit parameter uncertainties:
  1  29.4236
  2  14.0457
  3  133.373
  4  5.7886e-06
  5  3.33375e-05
  6  6.23347e-06
  7  3.39157e-05
  8  2.14115e-05
  9  37.3832
  10  0.000324182
  11  40.6087
  12  5.32492e-05
  13  0.000267894
  14  21.0867
  15  10.4828
  16  41.7022
  17  0.000256494
  18  1.68294e-05
  19  1.57271e-06
  20  8.80861e-06
  21  5.27834e-07
  22  15.1351
  23  4.28872
  24  52.3975
  25  0.000595192
  26  2.00628e-06
  27  1.14819e-06
  28  1.06757
  29  4.95548
  30  0.29632
  31  0.272724
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.775e+01  1.048e+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:  8.402e-01  2.727e-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.220e+00  2.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.54
Ra Dec: 342.606 -42.109
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 6.66e-08 +/- 3.93e-08
Energy Flux (Fixed Index): 3.77e-05 +/- 2.22e-05

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) = 4304.37386607
delta logL = 0.0488181877945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4304.37231805
delta logL = 0.0503662079718

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.231       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2374       1.0000          .0000       10.000    
     3 'Normalizat'    1.2073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84749       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4304.372     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      283 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.230        12.768        .10263E-03    .55373E-03
   2  Index         2.2373        .50310        .44264E-02    .14492E-03
   3  Normalizat    1.2072        .27401        .24129E-03   -.11662E-03
   4  Prefactor     .84756        .26574        .27615E-03   -.13375E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2304
  Index      = 2.23733
  Normalizat = 1.20719
  Prefactor  = 0.847555
 **********
 **   18 **HESSE 
 **********

 FCN=   4304.372     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.230        12.233        .20525E-04   -1.4927    
   2  Index         2.2373        .48166        .17706E-03   -.58540    
   3  Normalizat    1.2072        .27397        .48259E-04   -.86381    
   4  Prefactor     .84756        .26584        .11046E-04   -.97998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21713e-10
Minuit parameter uncertainties:
  1  12.2349
  2  0.482739
  3  0.274295
  4  0.266244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284932': 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) = 4304.37231796
delta logL = 0.0503662979909

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  8.476e-01  2.662e-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.207e+00  2.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.61
Ra Dec: 342.606 -42.109
Photon Index (Free Index): 2.24 +/- 0.48
Photon Flux (Free Index): 7.76e-08 +/- 5.62e-08
Energy Flux (Free Index): 3.26e-05 +/- 2.28e-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/284932/cmap_HighResolution_664416001_664675201_4FGL_J2250.4-4206_daily_bin1640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.66e-08', energy_flux2='3.26e-05', photon_flux_error='3.93e-08', dlogl='5.04e-02', energy_flux='3.77e-05', photon_flux2='7.76e-08', job_status='DONE', time_completed='2022-01-24 00:52:30.343138', photon_index_error2='0.48', photon_index2='2.24', ts='7.54', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='2.28e-05', EG='1.22', time_epoch_completed='1643014350.34', return_code='0', job_id='284932', GAL2='0.85', EG2='1.21', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='5.62e-08', ts2='7.61', photon_index='2.09' WHERE bin_id='1640' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 24 00:52:30 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 284932: <4FGL_J2250.4-4206_daily_bin1640> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin1640> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Jan 24 00:40:24 2022
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 24 00:40:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 24 00:40:25 2022
Terminated at Mon Jan 24 00:52:31 2022
Results reported at Mon Jan 24 00:52:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1640 342.606 -42.1095 664416001 664675201 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 :                                   623.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            727 sec.

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

