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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1438
RA = 342.606, Dec = -42.1095
tmin = 612057601, tmax = 612316801
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='516087', job_status='RUN', time_executed='2021-09-28 22:46:07.874895', time_epoch_executed='1632894367.87' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516087

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516087/ft1_4FGL_J2250.4-4206_daily_bin1438.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516087/ft2_4FGL_J2250.4-4206_daily_bin1438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516087/ft1_4FGL_J2250.4-4206_daily_bin1438.fits outfile=/scratch/kocevski/516087/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1438.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=612057601.0 tmax=612316801.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 4.53
user 4.29
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516087/ft1_filtered_4FGL_J2250.4-4206_daily_bin1438.fits" evtable="EVENTS" scfile=/scratch/kocevski/516087/ft2_4FGL_J2250.4-4206_daily_bin1438.fits sctable="SC_DATA" outfile=/scratch/kocevski/516087/ltcube_612057601_612316801_4FGL_J2250.4-4206_daily_bin1438.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/516087/ft2_4FGL_J2250.4-4206_daily_bin1438.fits
.....................!
real 11.78
user 11.45
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516087/ft1_filtered_4FGL_J2250.4-4206_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/516087/ft2_4FGL_J2250.4-4206_daily_bin1438.fits sctable="SC_DATA" expcube=/scratch/kocevski/516087/ltcube_612057601_612316801_4FGL_J2250.4-4206_daily_bin1438.fits outfile=/scratch/kocevski/516087/expmap_612057601_612316801_4FGL_J2250.4-4206_daily_bin1438.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/516087/ltcube_612057601_612316801_4FGL_J2250.4-4206_daily_bin1438.fits
.....................!
real 190.07
user 185.77
sys 3.95

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516087/ft1_filtered_4FGL_J2250.4-4206_daily_bin1438.fits scfile=/scratch/kocevski/516087/ft2_4FGL_J2250.4-4206_daily_bin1438.fits outfile=/scratch/kocevski/516087/cmap_HighResolution_612057601_612316801_4FGL_J2250.4-4206_daily_bin1438.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.023       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.2198       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.2543       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22801E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2711       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8551       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.589       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.338       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10616E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10864E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.557       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9670       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2792       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.2221       1.0000         .10000E-03   10000.    
    22 'norm      '    6.0261       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.1671       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .20932E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .21592       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .78365       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .93826       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=   6887.042     FROM MIGRAD    STATUS=CONVERGED    838 CALLS     4236 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.019        31.431        .27501E-06    .50361E-05
   2  Prefactor     9.2230        7.9117        .29013E-06   -.11474E-03
   3  Prefactor     .10004E-03    210.23        .10356E-04** at limit **
   4  norm          4.2544        4.2183        .26259E-07    .56302E-04
   5  Prefactor     .10000E-03    3.7502        .35082E-06** at limit **
   6  Prefactor     2.2706        3.4576        .44225E-06   -.33154E-05
   7  Prefactor     .10000E-03    20.855       -.11907E-05** at limit **
   8  Prefactor     .10000E-03    3.5513       -.65741E-06** at limit **
   9  Prefactor     4.8571        11.310        .23376E-06   -.22420E-04
  10  Prefactor     13.589        14.071       -.44938E-07   -.15966E-04
  11  Prefactor     17.313        22.805       -.31021E-05   -.34630E-03
  12  Prefactor     .10000E-03    16.126       -.15867E-05** at limit **
  13  Prefactor     .10012E-03    426.85       -.32546E-04** at limit **
  14  Prefactor     28.557        11.230        .10167E-07   -.64025E-04
  15  Prefactor     1.9666        3.5366        .26826E-06   -.14389E-04
  16  Prefactor     .10000E-03    25.343       -.12969E-05** at limit **
  17  Prefactor     .10000E-03    23.256        .30177E-05** at limit **
  18  Prefactor     4.2781        7.4306        .44992E-05   -.14941E-03
  19  norm          .10000E-03    2.8928        .42674E-07** at limit **
  20  norm          .10000E-03    1.5224       -.49775E-07** at limit **
  21  norm          4.2281        3.9170       -.13960E-06   -.38722E-04
  22  norm          6.0265        5.7241        .84887E-07    .11787E-04
  23  Prefactor     9.1569        5.1352        .14584E-06    .74992E-03
  24  Prefactor     .10000E-03    11.353       -.83715E-08** at limit **
  25  Prefactor     .10000E-03    25.417       -.48274E-06** at limit **
  26  norm          .10000E-03    1.6333        .18508E-07** at limit **
  27  Prefactor     .10006E-03    4.2055       -.17735E-05** at limit **
  28  norm          .10000E-03    .20984       -.12976E-07** at limit **
  29  norm          .21623        2.2399        .21595E-05   -.22548E-03
  30  Normalizat    .78370        .15153        .38499E-07    .51607E-04
  31  Prefactor     .93828        .15119       -.81006E-06    .11395E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.0188
  Prefactor  = 9.22302
  Prefactor  = 0.000100036
  norm       = 4.25439
  Prefactor  = 0.0001
  Prefactor  = 2.27059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.8571
  Prefactor  = 13.5889
  Prefactor  = 17.3126
  Prefactor  = 0.000100004
  Prefactor  = 0.000100117
  Prefactor  = 28.5573
  Prefactor  = 1.96663
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 4.27811
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.22812
  norm       = 6.02648
  Prefactor  = 9.15691
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100064
  norm       = 0.0001
  norm       = 0.216228
  Normalizat = 0.783698
  Prefactor  = 0.938276
 **********
 **   18 **HESSE 
 **********

 FCN=   6887.042     FROM HESSE     STATUS=OK           626 CALLS     4862 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.019        31.412        .64998E-04   -1.4474    
   2  Prefactor     9.2230        7.8980        .13199E-03   -1.5100    
   3  Prefactor     .10004E-03    214.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.2544        4.2259        .16553E-03   -1.5295    
   5  Prefactor     .10000E-03    9.8272        .30792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2706        3.4476        .17686E-03   -1.5407    
   7  Prefactor     .10000E-03    20.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.6270        .30455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.8571        11.283        .18256E-03   -1.5267    
  10  Prefactor     13.589        14.071        .10866E-03   -1.4971    
  11  Prefactor     17.313        23.267        .96188E-04   -1.4876    
  12  Prefactor     .10000E-03    16.789        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10012E-03    444.49        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.557        11.258        .74971E-04   -1.4639    
  15  Prefactor     1.9666        3.5073        .20249E-03   -1.5427    
  16  Prefactor     .10000E-03    25.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.2781        7.6237        .97381E-03   -1.5294    
  19  norm          .10000E-03    2.8943        .13785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.5231        .10000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.2281        3.6258        .14219E-03   -1.5297    
  22  norm          6.0265        5.7208        .16356E-03   -1.5217    
  23  Prefactor     9.1569        4.9344        .65205E-03   -1.5103    
  24  Prefactor     .10000E-03    11.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    25.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    7.0091        .18833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10006E-03    17.151        .30891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    .20989        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .21623        2.3183        .24127E-03   -1.5615    
  30  Normalizat    .78370        .18063        .23276E-03   -1.0068    
  31  Prefactor     .93828        .18203        .22391E-03   -.94816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09928e-09
Minuit parameter uncertainties:
  1  31.4257
  2  7.89891
  3  0.00557047
  4  4.22617
  5  9.73462e-05
  6  3.44793
  7  0.000199446
  8  2.08271e-05
  9  11.2877
  10  14.0742
  11  23.2795
  12  0.000514236
  13  0.0145192
  14  11.2589
  15  3.50764
  16  0.000128382
  17  0.000489114
  18  7.62539
  19  1.98725e-06
  20  3.0161e-06
  21  3.62595
  22  5.7213
  23  4.9346
  24  1.20185e-05
  25  0.000103995
  26  6.37182e-05
  27  0.00209214
  28  2.3904e-07
  29  1.41577
  30  0.180764
  31  0.182145
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.967e+00  3.508e+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

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  9.383e-01  1.821e-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:  7.837e-01  1.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.49
Ra Dec: 342.606 -42.109
Photon Flux Upper Limit: 4.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/516087/likelihoodResults_612057601_612316801_4FGL_J2250.4-4206_daily_bin1438.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6886.88898715
delta logL = 0.153238026729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6886.88195919
delta logL = 0.16026598721

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6604       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5269       1.0000          .0000       10.000    
     3 'Normalizat'    .78934       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93441       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=   6886.882     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      281 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6603        4.0839        .20179E-03    .17742E-03
   2  Index         1.5273        .87121        .15314E-01    .77729E-05
   3  Normalizat    .78942        .17161        .23196E-03    .19899E-04
   4  Prefactor     .93434        .18029        .22428E-03    .23267E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.66033
  Index      = 1.52727
  Normalizat = 0.789418
  Prefactor  = 0.934342
 **********
 **   18 **HESSE 
 **********

 FCN=   6886.882     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6603        4.1131        .80714E-05   -1.5382    
   2  Index         1.5273        .87770        .61254E-03   -.76779    
   3  Normalizat    .78942        .17182        .92784E-05   -1.0046    
   4  Prefactor     .93434        .18052        .89712E-05   -.94951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08499e-11
Minuit parameter uncertainties:
  1  4.11351
  2  0.886655
  3  0.171937
  4  0.180636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516087': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6886.88195896
delta logL = 0.160266213617

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  2.660e+00  4.114e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  1.527e+00  8.867e-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.343e-01  1.806e-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:  7.894e-01  1.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/516087/cmap_HighResolution_612057601_612316801_4FGL_J2250.4-4206_daily_bin1438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-03', job_status='DONE', photon_flux_upper_limit='4.87e-08', time_completed='2021-09-28 23:02:10.576625', job_id='516087', GAL2='0.93', fit_tolerance='1e-08', EG2='0.79', EG='0.78', time_epoch_completed='1632895330.58', return_code2='0', ts='0.49', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.60e-01', ts2='0.81', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1438' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 23:02:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 516087: <4FGL_J2250.4-4206_daily_bin1438> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1438 342.606 -42.1095 612057601 612316801 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 :                                   950.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

