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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1430
RA = 342.606, Dec = -42.1095
tmin = 609984001, tmax = 610243201
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='516075', job_status='RUN', time_executed='2021-09-28 22:48:51.225493', time_epoch_executed='1632894531.23' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516075

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516075/ft1_4FGL_J2250.4-4206_daily_bin1430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516075/ft2_4FGL_J2250.4-4206_daily_bin1430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516075/ft1_4FGL_J2250.4-4206_daily_bin1430.fits outfile=/scratch/kocevski/516075/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1430.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=609984001.0 tmax=610243201.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 5.13
user 4.87
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/516075/ft2_4FGL_J2250.4-4206_daily_bin1430.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/516075/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1430.fits evtable="EVENTS" outfile="/scratch/kocevski/516075/ft1_filtered_4FGL_J2250.4-4206_daily_bin1430.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516075/ft1_filtered_4FGL_J2250.4-4206_daily_bin1430.fits" evtable="EVENTS" scfile=/scratch/kocevski/516075/ft2_4FGL_J2250.4-4206_daily_bin1430.fits sctable="SC_DATA" outfile=/scratch/kocevski/516075/ltcube_609984001_610243201_4FGL_J2250.4-4206_daily_bin1430.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/516075/ft2_4FGL_J2250.4-4206_daily_bin1430.fits
.....................!
real 11.96
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516075/ft1_filtered_4FGL_J2250.4-4206_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/516075/ft2_4FGL_J2250.4-4206_daily_bin1430.fits sctable="SC_DATA" expcube=/scratch/kocevski/516075/ltcube_609984001_610243201_4FGL_J2250.4-4206_daily_bin1430.fits outfile=/scratch/kocevski/516075/expmap_609984001_610243201_4FGL_J2250.4-4206_daily_bin1430.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/516075/ltcube_609984001_610243201_4FGL_J2250.4-4206_daily_bin1430.fits
.....................!
real 191.53
user 185.81
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/516075/ft1_filtered_4FGL_J2250.4-4206_daily_bin1430.fits scfile=/scratch/kocevski/516075/ft2_4FGL_J2250.4-4206_daily_bin1430.fits outfile=/scratch/kocevski/516075/cmap_609984001_610243201_4FGL_J2250.4-4206_daily_bin1430.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516075/ft1_filtered_4FGL_J2250.4-4206_daily_bin1430.fits scfile=/scratch/kocevski/516075/ft2_4FGL_J2250.4-4206_daily_bin1430.fits outfile=/scratch/kocevski/516075/cmap_HighResolution_609984001_610243201_4FGL_J2250.4-4206_daily_bin1430.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/516075/ft1_filtered_4FGL_J2250.4-4206_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/516075/ft2_4FGL_J2250.4-4206_daily_bin1430.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/516075/Model_4FGL_J2250.4-4206_daily_bin1430.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/516075/ft1_filtered_4FGL_J2250.4-4206_daily_bin1430.fits.....................!
real 38.41
user 37.05
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.194       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.2890       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8583       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.091       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.771       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17903E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1312       1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.967       1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.519       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    18.057       1.0000         .10000E-03   10000.    
    28 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0891       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .92306       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=   4589.559     FROM MIGRAD    STATUS=CONVERGED    797 CALLS     4127 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.211        36.696        .75783E-06    .92020E-04
   2  Prefactor     .10000E-03    11.114        .68390E-06** at limit **
   3  Prefactor     .10000E-03    96.064       -.76822E-06** at limit **
   4  norm          7.2893        8.8231        .18621E-05   -.13552E-04
   5  Prefactor     .10000E-03    12.162       -.27288E-06** at limit **
   6  Prefactor     .10000E-03    3.5491       -.39247E-07** at limit **
   7  Prefactor     .10000E-03    16.593        .21119E-06** at limit **
   8  Prefactor     1.8577        5.0004        .54021E-06   -.16041E-03
   9  Prefactor     .10000E-03    16.708        .27086E-06** at limit **
  10  Prefactor     48.087        28.802        .77948E-07   -.62014E-04
  11  Prefactor     .10000E-03    39.921       -.11534E-05** at limit **
  12  Prefactor     .10000E-03    4.6221       -.63613E-07** at limit **
  13  Prefactor     .10000E-03    27.889       -.31596E-06** at limit **
  14  Prefactor     13.772        14.023        .14472E-06    .15823E-05
  15  Prefactor     .10004E-03    6.8577        .15681E-05** at limit **
  16  Prefactor     .10000E-03    14.064       -.51290E-06** at limit **
  17  Prefactor     .10000E-03    53.449        .14347E-05** at limit **
  18  Prefactor     .10000E-03    7.3372       -.28969E-07** at limit **
  19  norm          .10000E-03    8.0020       -.93739E-07** at limit **
  20  norm          1.1280        9.9057        .38592E-05    .98273E-04
  21  norm          .10000E-03    2.5225       -.34101E-07** at limit **
  22  norm          .10000E-03    11.194        .24032E-06** at limit **
  23  Prefactor     23.972        12.667       -.40372E-06    .87452E-04
  24  Prefactor     25.513        31.403        .81700E-07   -.30632E-04
  25  Prefactor     .10000E-03    43.300       -.67557E-07** at limit **
  26  norm          .10000E-03    1.8576       -.61650E-07** at limit **
  27  Prefactor     18.057        23.911        .46820E-06    .52516E-04
  28  norm          .10000E-03    .99252       -.42446E-06** at limit **
  29  norm          .10000E-03    2.4953       -.23156E-07** at limit **
  30  Normalizat    1.0892        .21957       -.16776E-06   -.61571E-04
  31  Prefactor     .92303        .21487       -.41524E-06   -.37274E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.2106
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 7.28933
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.85767
  Prefactor  = 0.0001
  Prefactor  = 48.0871
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7716
  Prefactor  = 0.000100044
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.12799
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 23.9718
  Prefactor  = 25.5132
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.0568
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.08919
  Prefactor  = 0.923031
 **********
 **   18 **HESSE 
 **********

 FCN=   4589.559     FROM HESSE     STATUS=OK           612 CALLS     4739 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.211        36.641        .85022E-04   -1.4765    
   2  Prefactor     .10000E-03    11.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    96.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.2893        8.7633        .74283E-03   -1.5168    
   5  Prefactor     .10000E-03    12.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.6496        .24900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8577        4.9758        .23641E-03   -1.5435    
   9  Prefactor     .10000E-03    16.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     48.087        28.801        .57823E-04   -1.4320    
  11  Prefactor     .10000E-03    40.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.6413        .14225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.772        14.037        .10794E-03   -1.4966    
  15  Prefactor     .10004E-03    23.394        .31448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    53.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.3517        .17920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.0297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1280        10.120        .40381E-03   -1.5496    
  21  norm          .10000E-03    2.5302        .10503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    11.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.972        12.574        .81822E-04   -1.4728    
  24  Prefactor     25.513        31.398        .79299E-04   -1.4697    
  25  Prefactor     .10000E-03    43.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.8607        .90002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     18.057        23.937        .94254E-04   -1.4858    
  28  norm          .10000E-03    1.6511        .12643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.5132        .10444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0892        .26170        .23688E-03   -.90100    
  31  Prefactor     .92303        .25629        .25743E-03   -.95341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19765e-09
Minuit parameter uncertainties:
  1  36.6786
  2  6.69755e-05
  3  0.00092745
  4  8.76487
  5  8.16036e-05
  6  1.97432e-06
  7  8.63591e-05
  8  4.97694
  9  0.000110547
  10  28.809
  11  0.000349873
  12  2.78257e-06
  13  0.000158549
  14  14.0405
  15  0.00202703
  16  0.000179724
  17  0.00101647
  18  3.00564e-06
  19  2.52359e-05
  20  6.75838
  21  3.57397e-07
  22  5.32704e-05
  23  12.5757
  24  31.4183
  25  5.56253e-05
  26  9.21026e-07
  27  23.9495
  28  1.39039e-05
  29  6.48861e-07
  30  0.262014
  31  0.256626
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.027e-03  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.230e-01  2.566e-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.089e+00  2.620e-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: 6.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/516075/likelihoodResults_609984001_610243201_4FGL_J2250.4-4206_daily_bin1430.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) = 4589.55944322
delta logL = -0.000201504717552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4589.55924059
delta logL = 1.12837824418e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11032E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2095       1.0000          .0000       10.000    
     3 'Normalizat'    1.0892       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92303       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4589.558     FROM MIGRAD    STATUS=FAILED       184 CALLS      365 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12265        55.569        .56358E-01    .91155E-02
   2  Index         2.5657        7.9592        .75596E-02   -.77570E-05
   3  Normalizat    1.0882        .27888E-01    .23698E-03   -.11149E-03
   4  Prefactor     .92311        .28098E-01    .25742E-03   -.13033E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4589.558     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      449 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12265        55.569        .54737E-03    .91155E-02
   2  Index         2.5657        7.9592        .41479E-02   -.77570E-05
   3  Normalizat    1.0882        .27888E-01    .35092E-04   -.11149E-03
   4  Prefactor     .92311        .28098E-01    .27004E-04   -.13033E-03
                               ERR DEF=  .500    

 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=   4589.558     FROM MIGRAD    STATUS=FAILED        81 CALLS      530 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12266        58.670        .56332E-01    .91221E-02
   2  Index         2.5657        7.6916        .60477E-04   -.10866E-04
   3  Normalizat    1.0882        .28776E-01    .18958E-05   -.11274E-03
   4  Prefactor     .92311        .28957E-01    .20594E-05   -.13028E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.122655
  Index      = 2.5657
  Normalizat = 1.08821
  Prefactor  = 0.923107
 **********
 **   18 **HESSE 
 **********

 FCN=   4589.558     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      563 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12266        58.643        .56332E-01   -1.5638    
   2  Index         2.5657        7.6850        .12095E-04   -.50849    
   3  Normalizat    1.0882        .28654E-01    .37917E-06   -.90131    
   4  Prefactor     .92311        .28858E-01    .41187E-06   -.95338    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.11695e-06
Minuit parameter uncertainties:
  1  5.36701
  2  22.4798
  3  0.0286547
  4  0.0288589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516075': 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): 1
logL (Free Index) = 4589.55824367
delta logL = 0.000998052105388

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.227e-01  5.367e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.566e+00  2.248e+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:  9.231e-01  2.886e-02  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  1.088e+00  2.865e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.606 -42.109

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/516075/cmap_HighResolution_609984001_610243201_4FGL_J2250.4-4206_daily_bin1430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.98e-03', job_status='DONE', photon_flux_upper_limit='6.60e-08', time_completed='2021-09-28 23:02:29.032516', job_id='516075', GAL2='0.92', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1632895349.03', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='9.98e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1430' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 23:02:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 516075: <4FGL_J2250.4-4206_daily_bin1430> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1430 342.606 -42.1095 609984001 610243201 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 :                                   742.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   998 sec.
    Turnaround time :                            999 sec.

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

