/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 234 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2250.4-4206_daily_bin261
RA = 342.606, Dec = -42.1095
tmin = 306979201, tmax = 307238401
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='510922', job_status='RUN', time_executed='2021-09-28 22:34:25.679086', time_epoch_executed='1632893665.68' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='261'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510922

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510922/ft1_4FGL_J2250.4-4206_daily_bin261.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510922/ft2_4FGL_J2250.4-4206_daily_bin261.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510922/ft1_4FGL_J2250.4-4206_daily_bin261.fits outfile=/scratch/kocevski/510922/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin261.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=306979201.0 tmax=307238401.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 14.09
user 13.66
sys 0.40

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510922/ft1_filtered_4FGL_J2250.4-4206_daily_bin261.fits" evtable="EVENTS" scfile=/scratch/kocevski/510922/ft2_4FGL_J2250.4-4206_daily_bin261.fits sctable="SC_DATA" outfile=/scratch/kocevski/510922/ltcube_306979201_307238401_4FGL_J2250.4-4206_daily_bin261.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/510922/ft2_4FGL_J2250.4-4206_daily_bin261.fits
.....................!
real 11.02
user 10.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510922/ft1_filtered_4FGL_J2250.4-4206_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/510922/ft2_4FGL_J2250.4-4206_daily_bin261.fits sctable="SC_DATA" expcube=/scratch/kocevski/510922/ltcube_306979201_307238401_4FGL_J2250.4-4206_daily_bin261.fits outfile=/scratch/kocevski/510922/expmap_306979201_307238401_4FGL_J2250.4-4206_daily_bin261.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/510922/ltcube_306979201_307238401_4FGL_J2250.4-4206_daily_bin261.fits
.....................!
real 190.12
user 184.95
sys 4.86

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/510922/ft1_filtered_4FGL_J2250.4-4206_daily_bin261.fits scfile=/scratch/kocevski/510922/ft2_4FGL_J2250.4-4206_daily_bin261.fits outfile=/scratch/kocevski/510922/cmap_306979201_307238401_4FGL_J2250.4-4206_daily_bin261.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.34
sys 0.18

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

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/510922/ft1_filtered_4FGL_J2250.4-4206_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/510922/ft2_4FGL_J2250.4-4206_daily_bin261.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/510922/Model_4FGL_J2250.4-4206_daily_bin261.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/510922/ft1_filtered_4FGL_J2250.4-4206_daily_bin261.fits..........................!
real 17.14
user 15.94
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15391E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10969E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .34576E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .11987E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9236       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.990       1.0000         .10000E-03   10000.    
     8 'Prefactor '    123.41       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    132.98       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.742       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22289E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    53.380       1.0000         .10000E-03   10000.    
    21 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    37.524       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11228E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    193.31       1.0000         .10000E-03   10000.    
    28 'norm      '    20.329       1.0000         .10000E-03   10000.    
    29 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3451       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .28308       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=   606.5514     FROM MIGRAD    STATUS=CONVERGED    776 CALLS     4780 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    655.61       -.31500E-06** at limit **
   2  Prefactor     .10000E-03    284.78        .57658E-06** at limit **
   3  Prefactor     .10000E-03    6403.5       -.26505E-06** at limit **
   4  norm          .10000E-03    332.31        .50990E-06** at limit **
   5  Prefactor     5.8847        56.202       -.21674E-05   -.60127E-04
   6  Prefactor     .10000E-03    16.675        .11243E-05** at limit **
   7  Prefactor     29.417        729.45       -.21719E-04   -.92719E-05
   8  Prefactor     123.47        100.32       -.23188E-06   -.17871E-04
   9  Prefactor     .10000E-03    43.959        .29220E-06** at limit **
  10  Prefactor     132.96        131.97        .76954E-06   -.42889E-04
  11  Prefactor     .10000E-03    736.28       -.74296E-07** at limit **
  12  Prefactor     .10000E-03    166.57       -.12801E-06** at limit **
  13  Prefactor     .10001E-03    1147.9       -.19644E-05** at limit **
  14  Prefactor     52.823        54.453        .81290E-06   -.16629E-03
  15  Prefactor     .10000E-03    20.844        .68154E-06** at limit **
  16  Prefactor     .10000E-03    301.34        .69822E-06** at limit **
  17  Prefactor     .10000E-03    110.53       -.41338E-06** at limit **
  18  Prefactor     .10000E-03    106.76        .10095E-06** at limit **
  19  norm          .10000E-03    39.826        .31455E-07** at limit **
  20  norm          53.371        78.979        .28288E-06   -.83724E-05
  21  norm          .10000E-03    11.208       -.26766E-06** at limit **
  22  norm          37.532        30.338       -.59363E-06   -.12601E-03
  23  Prefactor     .10000E-03    87.938        .16472E-05** at limit **
  24  Prefactor     .10000E-03    56.281       -.15490E-06** at limit **
  25  Prefactor     .10000E-03    73.249       -.34720E-07** at limit **
  26  norm          .10000E-03    6.2721       -.11227E-06** at limit **
  27  Prefactor     193.42        243.71        .19629E-06   -.44456E-04
  28  norm          20.330        20.948       -.23986E-06   -.97397E-04
  29  norm          .10000E-03    5.4602        .14294E-08** at limit **
  30  Normalizat    1.3420        .92691       -.26333E-04    .41923E-04
  31  Prefactor     .28570        .76073        .55174E-04    .14188E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 5.88471
  Prefactor  = 0.0001
  Prefactor  = 29.4173
  Prefactor  = 123.465
  Prefactor  = 0.0001
  Prefactor  = 132.963
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 52.823
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 53.3706
  norm       = 0.0001
  norm       = 37.5323
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 193.423
  norm       = 20.3302
  norm       = 0.0001
  Normalizat = 1.34204
  Prefactor  = 0.285695
 **********
 **   18 **HESSE 
 **********

 FCN=   606.5514     FROM HESSE     STATUS=OK           600 CALLS     5380 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    655.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    284.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6403.4        .21329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    332.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.8847        57.305        .16499E-03   -1.5223    
   6  Prefactor     .10000E-03    16.692        .98322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.417        726.64        .37205E-03   -1.4623    
   8  Prefactor     123.47        100.43        .18116E-03   -1.3481    
   9  Prefactor     .10000E-03    43.958        .15963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     132.96        131.70        .17460E-03   -1.3397    
  11  Prefactor     .10000E-03    735.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    166.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    1145.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     52.823        56.190        .55227E-04   -1.4253    
  15  Prefactor     .10000E-03    20.851        .10990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    301.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    110.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    106.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    39.826        .15194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          53.371        79.045        .54898E-04   -1.4246    
  21  norm          .10000E-03    11.215        .80581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          37.532        30.630        .65427E-04   -1.4482    
  23  Prefactor     .10000E-03    87.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    56.268        .18065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    73.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    6.2741        .60263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     193.42        246.22        .14526E-03   -1.2917    
  28  norm          20.330        21.024        .88834E-04   -1.4806    
  29  norm          .10000E-03    5.4605        .56227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3420        .95041        .25067E-03   -.82320    
  31  Prefactor     .28570        .76548        .46270E-03   -1.2311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.8622e-10
Minuit parameter uncertainties:
  1  0.00135978
  2  0.000716946
  3  0.00295107
  4  0.000833807
  5  36.7729
  6  5.26683e-05
  7  296.532
  8  100.571
  9  8.11082e-05
  10  131.99
  11  0.00207414
  12  0.000300851
  13  0.00708182
  14  56.2463
  15  3.55278e-05
  16  0.000812293
  17  0.000195538
  18  9.03534e-05
  19  2.74657e-05
  20  79.2005
  21  2.33173e-05
  22  30.6433
  23  0.000280276
  24  0.000122285
  25  0.000135764
  26  4.25352e-06
  27  247.551
  28  21.0312
  29  1.65548e-06
  30  0.963273
  31  0.795348
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  3.553e-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:  2.857e-01  7.953e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  1.342e+00  9.633e-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: 3.97e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/510922/likelihoodResults_306979201_307238401_4FGL_J2250.4-4206_daily_bin261.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) = 606.551577211
delta logL = -0.000194473773149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 606.551383574
delta logL = -8.3669237938e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3495       1.0000          .0000       10.000    
     3 'Normalizat'    1.3420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .28574       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=   606.5514     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      276 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10173E-03    171.81        .96873E-03** at limit **
   2  Index         2.2886        5.4817        .50000        .15606E-04
   3  Normalizat    1.3420        .51186E-01    .25067E-03   -.11361E-04
   4  Prefactor     .28570        .46190E-01    .46274E-03   -.47785E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010173
  Index      = 2.28864
  Normalizat = 1.34204
  Prefactor  = 0.285698
 **********
 **   18 **HESSE 
 **********

 FCN=   606.5514     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10173E-03    658.33        .19375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2886        8.8465        .50000       -.57314    
   3  Normalizat    1.3420        .10454        .50134E-04   -.82320    
   4  Prefactor     .28570        .94309E-01    .18510E-04   -1.2311    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.78814e-08
Minuit parameter uncertainties:
  1  0.0682636
  2  571.339
  3  0.104559
  4  0.0943599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510922': 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) = 606.551383366
delta logL = -6.29060878055e-07

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.017e-04  6.826e-02  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.289e+00  5.713e+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:  2.857e-01  9.436e-02  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  1.342e+00  1.046e-01  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/510922/cmap_HighResolution_306979201_307238401_4FGL_J2250.4-4206_daily_bin261.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.00e-02', job_status='DONE', photon_flux_upper_limit='3.97e-07', time_completed='2021-09-28 22:41:37.911597', job_id='510922', GAL2='0.29', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1632894097.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.29', dlogl='-6.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='261' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:41:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 510922: <4FGL_J2250.4-4206_daily_bin261> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin261 342.606 -42.1095 306979201 307238401 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 :                                   428.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             186.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   674 sec.
    Turnaround time :                            676 sec.

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

