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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1010
RA = 342.606, Dec = -42.1095
tmin = 501120001, tmax = 501379201
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='514382', job_status='RUN', time_executed='2021-09-28 22:41:11.307692', time_epoch_executed='1632894071.31' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514382

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514382/ft1_4FGL_J2250.4-4206_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514382/ft2_4FGL_J2250.4-4206_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514382/ft1_4FGL_J2250.4-4206_daily_bin1010.fits outfile=/scratch/kocevski/514382/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1010.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=501120001.0 tmax=501379201.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.50
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514382/ft1_filtered_4FGL_J2250.4-4206_daily_bin1010.fits" evtable="EVENTS" scfile=/scratch/kocevski/514382/ft2_4FGL_J2250.4-4206_daily_bin1010.fits sctable="SC_DATA" outfile=/scratch/kocevski/514382/ltcube_501120001_501379201_4FGL_J2250.4-4206_daily_bin1010.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/514382/ft2_4FGL_J2250.4-4206_daily_bin1010.fits
.....................!
real 12.16
user 11.56
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514382/ft1_filtered_4FGL_J2250.4-4206_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/514382/ft2_4FGL_J2250.4-4206_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/514382/ltcube_501120001_501379201_4FGL_J2250.4-4206_daily_bin1010.fits outfile=/scratch/kocevski/514382/expmap_501120001_501379201_4FGL_J2250.4-4206_daily_bin1010.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/514382/ltcube_501120001_501379201_4FGL_J2250.4-4206_daily_bin1010.fits
.....................!
real 191.60
user 186.89
sys 4.37

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/514382/ft1_filtered_4FGL_J2250.4-4206_daily_bin1010.fits scfile=/scratch/kocevski/514382/ft2_4FGL_J2250.4-4206_daily_bin1010.fits outfile=/scratch/kocevski/514382/cmap_501120001_501379201_4FGL_J2250.4-4206_daily_bin1010.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=342.606 yref=-42.1095 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514382/ft1_filtered_4FGL_J2250.4-4206_daily_bin1010.fits scfile=/scratch/kocevski/514382/ft2_4FGL_J2250.4-4206_daily_bin1010.fits outfile=/scratch/kocevski/514382/cmap_HighResolution_501120001_501379201_4FGL_J2250.4-4206_daily_bin1010.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/514382/ft1_filtered_4FGL_J2250.4-4206_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/514382/ft2_4FGL_J2250.4-4206_daily_bin1010.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514382/Model_4FGL_J2250.4-4206_daily_bin1010.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/514382/ft1_filtered_4FGL_J2250.4-4206_daily_bin1010.fits.....................!
real 42.18
user 40.96
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8616       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.536       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .94159E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7372       1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.624       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.1081       1.0000         .10000E-03   10000.    
    19 'norm      '    9.7910       1.0000         .10000E-03   10000.    
    20 'norm      '    2.5990       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    26.008       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.2618       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    4.0238       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2021       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .79071       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=   5399.351     FROM MIGRAD    STATUS=CONVERGED    849 CALLS     4251 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    76.247       -.67311E-06** at limit **
   2  Prefactor     .10000E-03    4.8864       -.67247E-07** at limit **
   3  Prefactor     .10000E-03    43.404        .97119E-06** at limit **
   4  norm          .10000E-03    7.8090        .10301E-06** at limit **
   5  Prefactor     .10000E-03    8.0437        .48675E-08** at limit **
   6  Prefactor     3.8611        4.3224       -.95072E-07   -.37692E-03
   7  Prefactor     .10000E-03    36.137       -.70677E-06** at limit **
   8  Prefactor     .10000E-03    2.9418        .28867E-07** at limit **
   9  Prefactor     24.534        22.217        .47141E-06   -.23711E-04
  10  Prefactor     .10000E-03    9.7171        .38687E-07** at limit **
  11  Prefactor     .10344E-03    37.929        .15031E-05** at limit **
  12  Prefactor     1.7461        28.125       -.88599E-05   -.57023E-03
  13  Prefactor     40.708        85.984        .40132E-04   -.16678E-03
  14  Prefactor     .10000E-03    20.113       -.12910E-06** at limit **
  15  Prefactor     .10000E-03    6.7583        .30011E-07** at limit **
  16  Prefactor     .10000E-03    10.874       -.65242E-07** at limit **
  17  Prefactor     .10000E-03    144.04        .28887E-05** at limit **
  18  Prefactor     7.1078        11.116        .22688E-06   -.98154E-04
  19  norm          9.7911        10.296        .27082E-06   -.49455E-04
  20  norm          2.5991        3.3829        .15135E-08    .39570E-06
  21  norm          .10000E-03    1.3838       -.72856E-08** at limit **
  22  norm          .10000E-03    6.8630       -.90732E-07** at limit **
  23  Prefactor     .10000E-03    1.3613       -.14302E-07** at limit **
  24  Prefactor     .10000E-03    19.779        .22427E-06** at limit **
  25  Prefactor     26.006        34.753        .75196E-06   -.13459E-04
  26  norm          .10000E-03    1.3386        .10713E-07** at limit **
  27  Prefactor     8.2611        8.0326        .59642E-06   -.10239E-03
  28  norm          .10000E-03    .21327       -.36646E-07** at limit **
  29  norm          4.0236        3.6221       -.40347E-07   -.21327E-03
  30  Normalizat    1.2023        .18515       -.11976E-06   -.62966E-04
  31  Prefactor     .79059        .18249       -.47829E-06   -.42117E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.86115
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.5337
  Prefactor  = 0.0001
  Prefactor  = 0.000103441
  Prefactor  = 1.74612
  Prefactor  = 40.7085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.10777
  norm       = 9.79108
  norm       = 2.59913
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.0058
  norm       = 0.0001
  Prefactor  = 8.26111
  norm       = 0.0001
  norm       = 4.02359
  Normalizat = 1.20226
  Prefactor  = 0.790591
 **********
 **   18 **HESSE 
 **********

 FCN=   5399.351     FROM HESSE     STATUS=OK           620 CALLS     4871 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    76.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.9032        .15861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    43.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.8779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.1694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8611        4.3264        .15227E-03   -1.5315    
   7  Prefactor     .10000E-03    36.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9611        .12298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.534        22.231        .80870E-04   -1.4717    
  10  Prefactor     .10000E-03    9.7341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10344E-03    45.819        .96663E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7461        28.274        .31837E-03   -1.5444    
  13  Prefactor     40.708        87.398        .62891E-04   -1.4431    
  14  Prefactor     .10000E-03    20.688        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.9085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    146.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.1078        11.103        .15046E-03   -1.5175    
  19  norm          9.7911        10.292        .12806E-03   -1.5082    
  20  norm          2.5991        3.3747        .15000E-03   -1.5386    
  21  norm          .10000E-03    1.3844        .84416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.9584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.3621        .83709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     26.006        34.752        .78551E-04   -1.4688    
  26  norm          .10000E-03    1.3450        .82985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.2611        8.0289        .13948E-03   -1.5133    
  28  norm          .10000E-03    .21329        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          4.0236        3.6188        .12789E-03   -1.5307    
  30  Normalizat    1.2023        .21642        .21319E-03   -.86533    
  31  Prefactor     .79059        .21212        .26150E-03   -1.0008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75507e-09
Minuit parameter uncertainties:
  1  0.00012177
  2  4.77596e-06
  3  4.62636e-05
  4  1.00028e-05
  5  1.74644e-06
  6  4.32679
  7  5.28819e-05
  8  1.38342e-06
  9  22.2381
  10  6.27409e-07
  11  0.0251316
  12  14.0602
  13  87.6748
  14  1.95531e-05
  15  5.96357e-06
  16  3.81051e-06
  17  0.000295472
  18  11.1067
  19  10.2944
  20  3.37497
  21  3.03775e-07
  22  6.41406e-06
  23  1.10057e-06
  24  1.81482e-06
  25  34.7786
  26  6.94629e-07
  27  8.02999
  28  1.26433e-07
  29  3.61895
  30  0.216579
  31  0.212338
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  5.964e-06  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:  7.906e-01  2.123e-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.202e+00  2.166e-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: 5.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514382/likelihoodResults_501120001_501379201_4FGL_J2250.4-4206_daily_bin1010.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) = 5399.35176089
delta logL = -0.000690150505761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5399.35107625
delta logL = -5.51320954401e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   5399.351     FROM MIGRAD    STATUS=FAILED        91 CALLS      242 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11072E-03    13.519        .36285E-02** at limit **
   2  Index         2.2598        6.1279        .50000       -.48480E-04
   3  Normalizat    1.2023        .52777E-02    .21319E-03   -.36618E-03
   4  Prefactor     .79059        .53912E-02    .26150E-03   -.76602E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5399.351     FROM SIMPLEX   STATUS=PROGRESS      98 CALLS      340 TOTAL
                     EDM=   .61E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.519        .36302E-03** at limit **
   2  Index         2.2365        6.1279        .76822E-02   -.48480E-04
   3  Normalizat    1.2022        .52777E-02    .10398E-04   -.36618E-03
   4  Prefactor     .79058        .53912E-02    .96095E-05   -.76602E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5399.351     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      377 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10588E-03    2.7636        .72569E-02** at limit **
   2  Index         2.2900        5.6448        .50000       -.47562E-04
   3  Normalizat    1.2022        .23523E-02    .42638E-04   -.14580E-01
   4  Prefactor     .79058        .24028E-02    .10460E-04   -.11470E-01
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105876
  Index      = 2.29003
  Normalizat = 1.20223
  Prefactor  = 0.790576
 **********
 **   18 **HESSE 
 **********

 FCN=   5399.351     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      406 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10588E-03    491.29        .29028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2900        6.0397        .50000       -.57281    
   3  Normalizat    1.2022        .32938E-01    .85276E-05   -.86534    
   4  Prefactor     .79058        .33571E-01    .20920E-05   -1.0008    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.81126e-07
Minuit parameter uncertainties:
  1  0.108361
  2  473.349
  3  0.0329382
  4  0.0335722
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514382': 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) = 5399.3510691
delta logL = 1.64276752912e-06

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.059e-04  1.084e-01  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.290e+00  4.733e+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:  7.906e-01  3.357e-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.202e+00  3.294e-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/514382/cmap_HighResolution_501120001_501379201_4FGL_J2250.4-4206_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.44e-03', job_status='DONE', photon_flux_upper_limit='5.88e-08', time_completed='2021-09-28 22:54:54.493624', job_id='514382', GAL2='0.79', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1632894894.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.64e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1010' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:54:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 514382: <4FGL_J2250.4-4206_daily_bin1010> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin1010> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:40:38 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:40:41 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:40:41 2021
Terminated at Tue Sep 28 22:54:55 2021
Results reported at Tue Sep 28 22:54:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1010 342.606 -42.1095 501120001 501379201 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 :                                   815.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            857 sec.

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

