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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1385
RA = 342.606, Dec = -42.1095
tmin = 598320001, tmax = 598579201
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='516008', job_status='RUN', time_executed='2021-09-28 22:47:23.762509', time_epoch_executed='1632894443.76' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516008

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516008/ft1_4FGL_J2250.4-4206_daily_bin1385.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516008/ft2_4FGL_J2250.4-4206_daily_bin1385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516008/ft1_4FGL_J2250.4-4206_daily_bin1385.fits outfile=/scratch/kocevski/516008/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1385.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=598320001.0 tmax=598579201.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.32
user 3.12
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516008/ft1_filtered_4FGL_J2250.4-4206_daily_bin1385.fits" evtable="EVENTS" scfile=/scratch/kocevski/516008/ft2_4FGL_J2250.4-4206_daily_bin1385.fits sctable="SC_DATA" outfile=/scratch/kocevski/516008/ltcube_598320001_598579201_4FGL_J2250.4-4206_daily_bin1385.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/516008/ft2_4FGL_J2250.4-4206_daily_bin1385.fits
.....................!
real 12.35
user 12.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516008/ft1_filtered_4FGL_J2250.4-4206_daily_bin1385.fits evtable="EVENTS" scfile=/scratch/kocevski/516008/ft2_4FGL_J2250.4-4206_daily_bin1385.fits sctable="SC_DATA" expcube=/scratch/kocevski/516008/ltcube_598320001_598579201_4FGL_J2250.4-4206_daily_bin1385.fits outfile=/scratch/kocevski/516008/expmap_598320001_598579201_4FGL_J2250.4-4206_daily_bin1385.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/516008/ltcube_598320001_598579201_4FGL_J2250.4-4206_daily_bin1385.fits
.....................!
real 191.68
user 186.32
sys 5.04

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/516008/ft1_filtered_4FGL_J2250.4-4206_daily_bin1385.fits scfile=/scratch/kocevski/516008/ft2_4FGL_J2250.4-4206_daily_bin1385.fits outfile=/scratch/kocevski/516008/cmap_598320001_598579201_4FGL_J2250.4-4206_daily_bin1385.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516008/ft1_filtered_4FGL_J2250.4-4206_daily_bin1385.fits scfile=/scratch/kocevski/516008/ft2_4FGL_J2250.4-4206_daily_bin1385.fits outfile=/scratch/kocevski/516008/cmap_HighResolution_598320001_598579201_4FGL_J2250.4-4206_daily_bin1385.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.174       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6761       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.9648       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2982       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .34850E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.250       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.258       1.0000         .10000E-03   10000.    
    11 'Prefactor '    61.774       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13712E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    85.251       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3065       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8596       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.8979       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .74421       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    34.159       1.0000         .10000E-03   10000.    
    26 'norm      '    5.1295       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.7272       1.0000         .10000E-03   10000.    
    28 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .74423       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .99971       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=   7265.351     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     4166 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.085        43.028        .76686E-05    .29290E-03
   2  Prefactor     1.6968        12.732        .10888E-04    .17872E-03
   3  Prefactor     .10000E-03    53.956       -.49396E-05** at limit **
   4  norm          3.9649        5.2608        .61774E-06    .92973E-04
   5  Prefactor     .10000E-03    1.4278        .14920E-07** at limit **
   6  Prefactor     1.2986        1.7898        .24983E-07    .12276E-03
   7  Prefactor     .10000E-03    8.8433       -.16252E-06** at limit **
   8  Prefactor     .10396E-03    1.9920       -.23532E-05** at limit **
   9  Prefactor     14.251        13.167        .11849E-06   -.39733E-05
  10  Prefactor     11.259        14.488        .35040E-06    .83085E-05
  11  Prefactor     61.770        26.903       -.60985E-06    .38443E-03
  12  Prefactor     .10000E-03    6.0509       -.54106E-06** at limit **
  13  Prefactor     85.168        76.951        .11930E-04    .11999E-03
  14  Prefactor     9.3069        9.1810        .10732E-05    .64556E-04
  15  Prefactor     4.8599        4.2826       -.21628E-06   -.75014E-05
  16  Prefactor     .10000E-03    13.602       -.12416E-05** at limit **
  17  Prefactor     .10000E-03    11.916        .10389E-05** at limit **
  18  Prefactor     .10000E-03    5.2926       -.69783E-08** at limit **
  19  norm          .10000E-03    2.9497        .11574E-07** at limit **
  20  norm          .10000E-03    1.2512        .54882E-08** at limit **
  21  norm          .10000E-03    1.2731        .41629E-08** at limit **
  22  norm          8.8987        6.9487        .24634E-06   -.47489E-05
  23  Prefactor     .74332        2.5510        .49199E-06    .26393E-04
  24  Prefactor     .10000E-03    14.939        .53502E-07** at limit **
  25  Prefactor     34.158        34.260        .43081E-06   -.10300E-05
  26  norm          5.1312        3.2105        .17942E-06    .84267E-07
  27  Prefactor     9.7311        9.1251        .15167E-06   -.40101E-04
  28  norm          .10000E-03    .26510        .66977E-07** at limit **
  29  norm          .10000E-03    1.4466        .35542E-07** at limit **
  30  Normalizat    .74425        .14923       -.84633E-06    .21964E-03
  31  Prefactor     .99968        .15224       -.10172E-05    .26069E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.0849
  Prefactor  = 1.69678
  Prefactor  = 0.000100001
  norm       = 3.96493
  Prefactor  = 0.0001
  Prefactor  = 1.29863
  Prefactor  = 0.0001
  Prefactor  = 0.000103956
  Prefactor  = 14.251
  Prefactor  = 11.2593
  Prefactor  = 61.7703
  Prefactor  = 0.0001
  Prefactor  = 85.1681
  Prefactor  = 9.30686
  Prefactor  = 4.85986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.89871
  Prefactor  = 0.743316
  Prefactor  = 0.0001
  Prefactor  = 34.1579
  norm       = 5.13117
  Prefactor  = 9.73108
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.744252
  Prefactor  = 0.999678
 **********
 **   18 **HESSE 
 **********

 FCN=   7265.351     FROM HESSE     STATUS=OK           632 CALLS     4798 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.085        43.129        .23467E-03   -1.3996    
   2  Prefactor     1.6968        12.843        .16275E-02   -1.5447    
   3  Prefactor     .10000E-03    54.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.9649        5.2561        .10129E-02   -1.5310    
   5  Prefactor     .10000E-03    1.4303        .99457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2986        1.7606        .12946E-03   -1.5480    
   7  Prefactor     .10000E-03    8.8448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10396E-03    2.3566        .41334E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.251        13.165        .10610E-03   -1.4953    
  10  Prefactor     11.259        14.490        .11940E-03   -1.5037    
  11  Prefactor     61.770        26.857        .51052E-04   -1.4134    
  12  Prefactor     .10000E-03    6.0921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     85.168        76.956        .21754E-03   -1.3860    
  14  Prefactor     9.3069        9.2025        .65686E-03   -1.5098    
  15  Prefactor     4.8599        4.2859        .15978E-03   -1.5267    
  16  Prefactor     .10000E-03    13.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.3341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.9675        .14297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.2518        .93108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.2751        .93844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.8987        6.9461        .13437E-03   -1.5111    
  23  Prefactor     .74332        2.7049        .22147E-02   -1.5536    
  24  Prefactor     .10000E-03    14.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     34.158        34.256        .68564E-04   -1.4538    
  26  norm          5.1312        3.2005        .11447E-03   -1.5255    
  27  Prefactor     9.7311        8.8595        .12849E-03   -1.5084    
  28  norm          .10000E-03    .40764        .84182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    1.4792        .19990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .74425        .17772        .24153E-03   -1.0217    
  31  Prefactor     .99968        .18184        .22542E-03   -.92740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.956e-09
Minuit parameter uncertainties:
  1  43.147
  2  9.339
  3  0.000357923
  4  5.25673
  5  1.15611e-06
  6  1.76063
  7  3.28755e-07
  8  0.006107
  9  13.1678
  10  14.4941
  11  26.8619
  12  5.2019e-05
  13  77.0466
  14  9.20385
  15  4.28621
  16  3.03266e-05
  17  2.50324e-05
  18  2.45551e-06
  19  1.57067e-06
  20  7.83562e-08
  21  9.93304e-08
  22  6.94672
  23  2.70536
  24  1.18e-05
  25  34.2761
  26  3.20065
  27  8.86072
  28  5.65144e-07
  29  3.02519e-06
  30  0.177863
  31  0.181953
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  4.860e+00  4.286e+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.997e-01  1.820e-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.443e-01  1.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.58
Ra Dec: 342.606 -42.109
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.82e-08 +/- 1.61e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 9.09e-06

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) = 7265.26227176
delta logL = 0.0889066016935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7265.26030555
delta logL = 0.0908728147779

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7416       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6231       1.0000          .0000       10.000    
     3 'Normalizat'    .75732       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99364       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=   7265.260     FROM MIGRAD    STATUS=FAILED        87 CALLS      240 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7415        4.7450        .17660E-03    .11380E-02
   2  Index         1.6225        .89499        .65906E-01   -.22663E-02
   3  Normalizat    .75732        .16873        .23956E-03   -.10858E-03
   4  Prefactor     .99355        .18011        .22603E-03   -.11775E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7265.260     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      311 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7415        4.7450        .10239E-03   -1.5272    
   2  Index         1.6225        .89499        .14149E-02   -.74164    
   3  Normalizat    .75732        .16873        .24489E-03   -1.0167    
   4  Prefactor     .99355        .18011        .21030E-03   -.92945    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7265.260     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      340 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7413        4.9757        .70640E-05    .13165E-03
   2  Index         1.6225        .94494        .98363E-02   -.94925E-05
   3  Normalizat    .75732        .16855        .95824E-05    .10725E-03
   4  Prefactor     .99355        .18022        .90413E-05    .91540E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.74131
  Index      = 1.62246
  Normalizat = 0.757323
  Prefactor  = 0.993546
 **********
 **   18 **HESSE 
 **********

 FCN=   7265.260     FROM HESSE     STATUS=OK            25 CALLS      365 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7413        5.0294        .14128E-05   -1.5272    
   2  Index         1.6225        .95453        .39345E-03   -.74165    
   3  Normalizat    .75732        .16872        .19165E-05   -1.0167    
   4  Prefactor     .99355        .18044        .18083E-05   -.92945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72509e-11
Minuit parameter uncertainties:
  1  5.02989
  2  0.965525
  3  0.168838
  4  0.180546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516008': 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) = 7265.26030451
delta logL = 0.0908738559356

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  4.741e+00  5.030e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  1.622e+00  9.655e-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.935e-01  1.805e-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.573e-01  1.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.76
Ra Dec: 342.606 -42.109
Photon Index (Free Index): 1.62 +/- 0.97
Photon Flux (Free Index): 8.05e-09 +/- 1.60e-08
Energy Flux (Free Index): 1.69e-05 +/- 2.95e-05

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/516008/cmap_HighResolution_598320001_598579201_4FGL_J2250.4-4206_daily_bin1385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.82e-08', energy_flux2='1.69e-05', photon_flux_error='1.61e-08', dlogl='9.09e-02', energy_flux='1.03e-05', photon_flux2='8.05e-09', job_status='DONE', time_completed='2021-09-28 23:01:27.101044', photon_index_error2='0.97', photon_index2='1.62', ts='6.58', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.95e-05', EG='0.74', time_epoch_completed='1632895287.1', return_code='0', job_id='516008', GAL2='0.99', EG2='0.76', return_code2='0', energy_flux_error='9.09e-06', photon_flux_error2='1.60e-08', ts2='6.76', photon_index='2.09' WHERE bin_id='1385' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 23:01:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 516008: <4FGL_J2250.4-4206_daily_bin1385> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1385 342.606 -42.1095 598320001 598579201 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 :                                   839.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            942 sec.

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

