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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1236
RA = 342.606, Dec = -42.1095
tmin = 559699201, tmax = 559958401
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='515784', job_status='RUN', time_executed='2021-09-28 22:48:37.261591', time_epoch_executed='1632894517.26' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1236'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/515784

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/515784/ft1_4FGL_J2250.4-4206_daily_bin1236.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/515784/ft2_4FGL_J2250.4-4206_daily_bin1236.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/515784/ft1_4FGL_J2250.4-4206_daily_bin1236.fits outfile=/scratch/kocevski/515784/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1236.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=559699201.0 tmax=559958401.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.59
user 3.35
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/515784/ft1_filtered_4FGL_J2250.4-4206_daily_bin1236.fits" evtable="EVENTS" scfile=/scratch/kocevski/515784/ft2_4FGL_J2250.4-4206_daily_bin1236.fits sctable="SC_DATA" outfile=/scratch/kocevski/515784/ltcube_559699201_559958401_4FGL_J2250.4-4206_daily_bin1236.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/515784/ft2_4FGL_J2250.4-4206_daily_bin1236.fits
.....................!
real 11.76
user 11.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/515784/ft1_filtered_4FGL_J2250.4-4206_daily_bin1236.fits evtable="EVENTS" scfile=/scratch/kocevski/515784/ft2_4FGL_J2250.4-4206_daily_bin1236.fits sctable="SC_DATA" expcube=/scratch/kocevski/515784/ltcube_559699201_559958401_4FGL_J2250.4-4206_daily_bin1236.fits outfile=/scratch/kocevski/515784/expmap_559699201_559958401_4FGL_J2250.4-4206_daily_bin1236.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/515784/ltcube_559699201_559958401_4FGL_J2250.4-4206_daily_bin1236.fits
.....................!
real 190.92
user 186.01
sys 4.53

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/515784/ft1_filtered_4FGL_J2250.4-4206_daily_bin1236.fits scfile=/scratch/kocevski/515784/ft2_4FGL_J2250.4-4206_daily_bin1236.fits outfile=/scratch/kocevski/515784/cmap_559699201_559958401_4FGL_J2250.4-4206_daily_bin1236.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/515784/ft1_filtered_4FGL_J2250.4-4206_daily_bin1236.fits scfile=/scratch/kocevski/515784/ft2_4FGL_J2250.4-4206_daily_bin1236.fits outfile=/scratch/kocevski/515784/cmap_HighResolution_559699201_559958401_4FGL_J2250.4-4206_daily_bin1236.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=342.606 yref=-42.1095 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18211E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    61.578       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11786E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.412       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.9225       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12400E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.019       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11620E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    27.071       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    52.896       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    173.50       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10004E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2239       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   863.2422     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     3423 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12126E-03    26.024       -.87677E-04** at limit **
   2  Prefactor     61.513        13.312       -.24415E-04    .71399E-02
   3  Prefactor     .92692E-03    155.46       -.33976E-03** at limit **
   4  norm          .10101E-03    33.482        .11078E-03** at limit **
   5  Prefactor     36.405        1.2348       -.16489E-05   -.48990E-03
   6  Prefactor     8.9144        1.1653        .11890E-05   -.30081E-04
   7  Prefactor     .10520E-03    38.952        .90995E-04** at limit **
   8  Prefactor     .10000E-03    18.069        .74445E-05** at limit **
   9  Prefactor     .10000E-03    16.706        .71165E-06** at limit **
  10  Prefactor     .22111E-03    106.86       -.13122E-03** at limit **
  11  Prefactor     .13950E-03    193.49       -.30741E-03** at limit **
  12  Prefactor     .11104E-03    28.733        .39737E-04** at limit **
  13  Prefactor     .17028E-02    118.39       -.30248E-03** at limit **
  14  Prefactor     27.016        1.0166       -.23169E-06    .39628E-04
  15  Prefactor     .10000E-03    9.2379       -.53771E-05** at limit **
  16  Prefactor     .10329E-03    38.076        .95724E-04** at limit **
  17  Prefactor     .11838E-03    100.07       -.23691E-03** at limit **
  18  Prefactor     .11011E-03    29.395        .23935E-04** at limit **
  19  norm          .10036E-03    34.105        .11035E-03** at limit **
  20  norm          .10032E-03    56.830        .91601E-04** at limit **
  21  norm          .10000E-03    7.2377        .99029E-06** at limit **
  22  norm          27.065        1.0810        .82219E-06    .20265E-03
  23  Prefactor     .10018E-03    53.132       -.55325E-04** at limit **
  24  Prefactor     .11132E-03    28.552        .66242E-04** at limit **
  25  Prefactor     52.890        1.5768       -.23374E-05    .48983E-03
  26  norm          .10000E-03    7.6904       -.14169E-05** at limit **
  27  Prefactor     173.48        5.5636       -.61142E-05    .55913E-02
  28  norm          .10000E-03    9.6461        .11681E-05** at limit **
  29  norm          .10000E-03    8.6979        .11950E-05** at limit **
  30  Normalizat    .10000E-01    1.8510       -.71187E-04** at limit **
  31  Prefactor     1.2234        .21422       -.10327E-04   -.11493E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000121261
  Prefactor  = 61.5131
  Prefactor  = 0.000926923
  norm       = 0.000101008
  Prefactor  = 36.405
  Prefactor  = 8.91442
  Prefactor  = 0.000105197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000221111
  Prefactor  = 0.000139503
  Prefactor  = 0.000111043
  Prefactor  = 0.00170281
  Prefactor  = 27.0157
  Prefactor  = 0.000100001
  Prefactor  = 0.000103286
  Prefactor  = 0.000118382
  Prefactor  = 0.000110114
  norm       = 0.000100358
  norm       = 0.000100317
  norm       = 0.0001
  norm       = 27.0653
  Prefactor  = 0.000100179
  Prefactor  = 0.000111316
  Prefactor  = 52.8897
  norm       = 0.0001
  Prefactor  = 173.478
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.22342
 **********
 **   18 **HESSE 
 **********

 FCN=   863.2422     FROM HESSE     STATUS=OK           672 CALLS     4095 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12126E-03    495.98        .10156E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     61.513        133.02        .12783E-02   -1.4138    
   3  Prefactor     .92692E-03    1147.0        .90712E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10101E-03    196.05        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.405        24.052        .16604E-02   -1.4501    
   6  Prefactor     8.9144        17.103        .33546E-02   -1.5111    
   7  Prefactor     .10520E-03    222.60        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.068        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.704        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22111E-03    330.70        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .13950E-03    510.93        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11104E-03    157.77        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .17028E-02    1456.6        .90712E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.016        25.791        .19268E-02   -1.4668    
  15  Prefactor     .10000E-03    9.2358        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10329E-03    219.01        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11838E-03    120.60        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11011E-03    154.30        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10036E-03    198.30        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10032E-03    57.091        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    7.2374        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          27.065        28.875        .19249E-02   -1.4667    
  23  Prefactor     .10018E-03    53.212        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .11132E-03    164.58        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     52.890        88.734        .13787E-02   -1.4252    
  26  norm          .10000E-03    7.6736        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     173.48        234.86        .76586E-03   -1.3066    
  28  norm          .10000E-03    9.6461        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    8.6873        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .96011        .19828       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.2234        .32925        .34089E-01   -.85614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13635e-06
Minuit parameter uncertainties:
  1  0.207115
  2  133.668
  3  1.98707
  4  0.0282112
  5  24.058
  6  17.1125
  7  0.0682831
  8  0.000167227
  9  8.50147e-05
  10  0.402495
  11  0.286613
  12  0.0837036
  13  3.13544
  14  25.8016
  15  0.000156147
  16  0.0538515
  17  0.0943586
  18  0.0792141
  19  0.0169136
  20  0.00851402
  21  8.23988e-05
  22  28.8896
  23  0.00617261
  24  0.0865492
  25  88.9568
  26  8.75536e-06
  27  236.142
  28  2.8668e-06
  29  1.77339e-05
  30  4.1569e-05
  31  0.329805
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.223e+00  3.298e-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.000e-02  4.157e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 342.606 -42.109
Photon Flux Upper Limit: 1.89e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.43e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/515784/likelihoodResults_559699201_559958401_4FGL_J2250.4-4206_daily_bin1236.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) = 863.242661764
delta logL = -0.000454294983797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 863.242211121
delta logL = -3.65164851246e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0637       1.0000          .0000       10.000    
     3 'Normalizat'    .10014E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2235       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=   863.2422     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      262 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10244E-03    18.648        .89540E-02** at limit **
   2  Index         1.9874        8.3899        .50000        .19452E-04
   3  Normalizat    .10000E-01    .71321E-02    .11573E-01** at limit **
   4  Prefactor     1.2234        .12958E-01    .18781E-03    .22172E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102441
  Index      = 1.98737
  Normalizat = 0.01
  Prefactor  = 1.22342
 **********
 **   18 **HESSE 
 **********

 FCN=   863.2422     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10244E-03    170.38        .91837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9874        8.3577        .50000       -.64666    
   3  Normalizat    .10000E-01    .68249E-01    .23145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2234        .39862E-01    .37562E-04   -.85614    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1215e-08
Minuit parameter uncertainties:
  1  0.0408999
  2  420.333
  3  2.19761e-05
  4  0.0398627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/515784': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 863.242207059
delta logL = 4.09887320529e-07

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.024e-04  4.090e-02  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  1.987e+00  4.203e+02  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.223e+00  3.986e-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.000e-02  2.198e-05  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/515784/cmap_HighResolution_559699201_559958401_4FGL_J2250.4-4206_daily_bin1236.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', job_status='DONE', photon_flux_upper_limit='1.89e-07', time_completed='2021-09-28 22:55:16.154612', job_id='515784', GAL2='1.22', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632894916.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='4.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1236' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:55:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 515784: <4FGL_J2250.4-4206_daily_bin1236> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin1236> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:45:31 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:45:33 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:33 2021
Terminated at Tue Sep 28 22:55:16 2021
Results reported at Tue Sep 28 22:55:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1236 342.606 -42.1095 559699201 559958401 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 :                                   384.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             199.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   583 sec.
    Turnaround time :                            585 sec.

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

