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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin578
RA = 342.606, Dec = -42.1095
tmin = 389145601, tmax = 389404801
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='512625', job_status='RUN', time_executed='2021-09-28 22:37:01.035565', time_epoch_executed='1632893821.04' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='578'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/512625

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/512625/ft1_4FGL_J2250.4-4206_daily_bin578.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/512625/ft2_4FGL_J2250.4-4206_daily_bin578.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/512625/ft1_4FGL_J2250.4-4206_daily_bin578.fits outfile=/scratch/kocevski/512625/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin578.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=389145601.0 tmax=389404801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.62
user 5.37
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/512625/ft2_4FGL_J2250.4-4206_daily_bin578.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/512625/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin578.fits evtable="EVENTS" outfile="/scratch/kocevski/512625/ft1_filtered_4FGL_J2250.4-4206_daily_bin578.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/512625/ft1_filtered_4FGL_J2250.4-4206_daily_bin578.fits" evtable="EVENTS" scfile=/scratch/kocevski/512625/ft2_4FGL_J2250.4-4206_daily_bin578.fits sctable="SC_DATA" outfile=/scratch/kocevski/512625/ltcube_389145601_389404801_4FGL_J2250.4-4206_daily_bin578.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/512625/ft2_4FGL_J2250.4-4206_daily_bin578.fits
.....................!
real 12.18
user 11.83
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/512625/ft1_filtered_4FGL_J2250.4-4206_daily_bin578.fits evtable="EVENTS" scfile=/scratch/kocevski/512625/ft2_4FGL_J2250.4-4206_daily_bin578.fits sctable="SC_DATA" expcube=/scratch/kocevski/512625/ltcube_389145601_389404801_4FGL_J2250.4-4206_daily_bin578.fits outfile=/scratch/kocevski/512625/expmap_389145601_389404801_4FGL_J2250.4-4206_daily_bin578.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/512625/ltcube_389145601_389404801_4FGL_J2250.4-4206_daily_bin578.fits
.....................!
real 190.37
user 185.11
sys 4.89

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/512625/ft1_filtered_4FGL_J2250.4-4206_daily_bin578.fits scfile=/scratch/kocevski/512625/ft2_4FGL_J2250.4-4206_daily_bin578.fits outfile=/scratch/kocevski/512625/cmap_389145601_389404801_4FGL_J2250.4-4206_daily_bin578.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.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.426       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.8174       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10895E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.333       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4448       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.382       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.561       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10576E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .77823E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.3226       1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    20.357       1.0000         .10000E-03   10000.    
    21 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10168E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    38.239       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .12279E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    5.1480       1.0000         .10000E-03   10000.    
    29 'norm      '    .15116E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .97107       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0506       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=   4916.854     FROM MIGRAD    STATUS=CONVERGED   1485 CALLS     4758 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.456        34.126        .10932E-03   -.14768E-04
   2  Prefactor     6.8221        9.9838        .15367E-03   -.78422E-04
   3  Prefactor     .10000E-03    114.79        .18142E-02** at limit **
   4  norm          10.334        8.4187        .12465E-03    .37850E-04
   5  Prefactor     .10000E-03    2.3729        .10538E-02** at limit **
   6  Prefactor     1.4549        5.1769        .26068E-03    .38205E-03
   7  Prefactor     15.548        77.940        .10212E-03   -.63833E-04
   8  Prefactor     .10000E-03    2.1073        .99210E-03** at limit **
   9  Prefactor     21.561        24.161        .86261E-04   -.13048E-04
  10  Prefactor     .10000E-03    15.771        .18142E-02** at limit **
  11  Prefactor     .10000E-03    8.0793        .18142E-02** at limit **
  12  Prefactor     .10000E-03    2.8446        .11545E-02** at limit **
  13  Prefactor     .10000E-03    41.839        .18142E-02** at limit **
  14  Prefactor     .10000E-03    4.0423        .13749E-02** at limit **
  15  Prefactor     .10000E-03    2.9982        .11838E-02** at limit **
  16  Prefactor     .10000E-03    19.651        .18142E-02** at limit **
  17  Prefactor     .10006E-03    80.916        .17544    ** at limit **
  18  Prefactor     7.3494        22.337        .14822E-03   -.31371E-04
  19  norm          .10000E-03    4.4220        .14399E-02** at limit **
  20  norm          20.360        12.023        .88772E-04    .76328E-04
  21  norm          .10000E-03    3.0631        .11966E-02** at limit **
  22  norm          .10000E-03    18.284        .36285E-03** at limit **
  23  Prefactor     .10000E-03    10.937        .18142E-02** at limit **
  24  Prefactor     38.219        43.808        .64815E-04   -.84052E-04
  25  Prefactor     .10000E-03    29.841        .18142E-02** at limit **
  26  norm          .10000E-03    4.3925        .14216E-02** at limit **
  27  Prefactor     .10000E-03    19.623        .18142E-02** at limit **
  28  norm          5.1477        2.1422        .58928E-04   -.57298E-04
  29  norm          .10002E-03    15.606        .27289E-02** at limit **
  30  Normalizat    .97066        .25341        .24703E-03   -.17654E-03
  31  Prefactor     1.0506        .24338        .24295E-03   -.37945E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4557
  Prefactor  = 6.82211
  Prefactor  = 0.0001
  norm       = 10.3338
  Prefactor  = 0.0001
  Prefactor  = 1.45491
  Prefactor  = 15.5476
  Prefactor  = 0.0001
  Prefactor  = 21.5611
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100058
  Prefactor  = 7.34944
  norm       = 0.0001
  norm       = 20.3602
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.2191
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.14772
  norm       = 0.000100016
  Normalizat = 0.970655
  Prefactor  = 1.05058
 **********
 **   18 **HESSE 
 **********

 FCN=   4916.854     FROM HESSE     STATUS=OK           600 CALLS     5358 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.456        34.128        .43726E-05   -1.4974    
   2  Prefactor     6.8221        9.9830        .61467E-05   -1.5186    
   3  Prefactor     .10000E-03    114.79        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.334        8.4186        .49860E-05   -1.5065    
   5  Prefactor     .10000E-03    2.3729        .21076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4549        5.1715        .10427E-04   -1.5467    
   7  Prefactor     15.548        77.841        .20425E-04   -1.4919    
   8  Prefactor     .10000E-03    2.1074        .19842E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.561        24.162        .34504E-05   -1.4779    
  10  Prefactor     .10000E-03    15.773        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.0794        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.8446        .23090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    41.839        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.0425        .27498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9983        .23676E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.652        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10006E-03    88.278        .16585       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.3494        22.332        .59288E-05   -1.5166    
  19  norm          .10000E-03    4.4220        .28798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          20.360        12.023        .17754E-04   -1.4805    
  21  norm          .10000E-03    3.0632        .23933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    18.284        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.945        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     38.219        43.786        .12963E-04   -1.4471    
  25  Prefactor     .10000E-03    29.842        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.3937        .28431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    19.628        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          5.1477        2.1420        .23571E-05   -1.5254    
  29  norm          .10002E-03    15.844        .54579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .97066        .25365        .98812E-05   -.94020    
  31  Prefactor     1.0506        .24368        .48590E-04   -.91062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20777e-09
Minuit parameter uncertainties:
  1  34.1773
  2  9.98544
  3  9.99079e-05
  4  8.41956
  5  4.59995e-06
  6  5.17305
  7  69.7218
  8  1.9541e-06
  9  24.1727
  10  0.000344529
  11  1.70602e-05
  12  5.35209e-06
  13  2.51202e-05
  14  5.88787e-06
  15  5.24845e-05
  16  4.92734e-05
  17  0.0045346
  18  22.3571
  19  3.61073e-06
  20  12.0247
  21  5.48531e-06
  22  0.000119092
  23  0.000119397
  24  43.8226
  25  1.09378e-05
  26  6.30129e-06
  27  9.00146e-05
  28  2.14199
  29  0.00102102
  30  0.253969
  31  0.243935
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.051e+00  2.439e-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:  9.707e-01  2.540e-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.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/512625/likelihoodResults_389145601_389404801_4FGL_J2250.4-4206_daily_bin578.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) = 4916.85590865
delta logL = -0.0015795057443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4916.85432915
delta logL = -2.6175257517e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0710       1.0000          .0000       10.000    
     3 'Normalizat'    .97064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0506       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=   4916.854     FROM MIGRAD    STATUS=FAILED        87 CALLS      234 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10099E-03    49.943        .11949E-02** at limit **
   2  Index         2.0185        5.8461        .50000        .34551E-04
   3  Normalizat    .97065        .19320E-01    .24703E-03   -.13392E-04
   4  Prefactor     1.0506        .19788E-01    .24295E-03   -.13009E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4916.854     FROM SIMPLEX   STATUS=PROGRESS     127 CALLS      361 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10015E-03    49.943        .25693E-03** at limit **
   2  Index         2.0172        5.8461        .42596E-03    .34551E-04
   3  Normalizat    .97064        .19320E-01    .49917E-05   -.13392E-04
   4  Prefactor     1.0506        .19788E-01    .40117E-05   -.13009E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4916.854     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      412 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.996        .23898E-02** at limit **
   2  Index         1.7091        8.7008        .50000        .94165E-06
   3  Normalizat    .97065        .17903E-01    .98811E-05    .86061E-04
   4  Prefactor     1.0506        .18337E-01    .97181E-05    .87504E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.70908
  Normalizat = 0.970653
  Prefactor  = 1.05058
 **********
 **   18 **HESSE 
 **********

 FCN=   4916.854     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      441 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    217.29        .47796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7091        8.3345        .50000       -.71841    
   3  Normalizat    .97065        .41122E-01    .19762E-05   -.94020    
   4  Prefactor     1.0506        .42113E-01    .19436E-05   -.91062    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.72487e-08
Minuit parameter uncertainties:
  1  0.000155655
  2  751.357
  3  0.0411231
  4  0.0421145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/512625': 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) = 4916.85432717
delta logL = 1.97436293092e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.051e+00  4.211e-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:  9.707e-01  4.112e-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/512625/cmap_HighResolution_389145601_389404801_4FGL_J2250.4-4206_daily_bin578.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-03', job_status='DONE', photon_flux_upper_limit='5.29e-08', time_completed='2021-09-28 22:50:32.497579', job_id='512625', GAL2='1.05', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632894632.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.97e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='578' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:50:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 512625: <4FGL_J2250.4-4206_daily_bin578> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin578 342.606 -42.1095 389145601 389404801 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 :                                   808.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            905 sec.

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

