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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1475
RA = 342.606, Dec = -42.1095
tmin = 621648001, tmax = 621907201
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='517183', job_status='RUN', time_executed='2021-09-28 22:50:36.167043', time_epoch_executed='1632894636.17' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/517183

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/517183/ft1_4FGL_J2250.4-4206_daily_bin1475.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/517183/ft2_4FGL_J2250.4-4206_daily_bin1475.fits


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

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

Done.
real 4.23
user 4.02
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/517183/ft1_filtered_4FGL_J2250.4-4206_daily_bin1475.fits" evtable="EVENTS" scfile=/scratch/kocevski/517183/ft2_4FGL_J2250.4-4206_daily_bin1475.fits sctable="SC_DATA" outfile=/scratch/kocevski/517183/ltcube_621648001_621907201_4FGL_J2250.4-4206_daily_bin1475.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/517183/ft2_4FGL_J2250.4-4206_daily_bin1475.fits
.....................!
real 9.74
user 9.43
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/517183/ft1_filtered_4FGL_J2250.4-4206_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/517183/ft2_4FGL_J2250.4-4206_daily_bin1475.fits sctable="SC_DATA" expcube=/scratch/kocevski/517183/ltcube_621648001_621907201_4FGL_J2250.4-4206_daily_bin1475.fits outfile=/scratch/kocevski/517183/expmap_621648001_621907201_4FGL_J2250.4-4206_daily_bin1475.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/517183/ltcube_621648001_621907201_4FGL_J2250.4-4206_daily_bin1475.fits
.....................!
real 151.94
user 147.74
sys 3.93

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/517183/ft1_filtered_4FGL_J2250.4-4206_daily_bin1475.fits scfile=/scratch/kocevski/517183/ft2_4FGL_J2250.4-4206_daily_bin1475.fits outfile=/scratch/kocevski/517183/cmap_621648001_621907201_4FGL_J2250.4-4206_daily_bin1475.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.46
user 0.29
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/517183/ft1_filtered_4FGL_J2250.4-4206_daily_bin1475.fits scfile=/scratch/kocevski/517183/ft2_4FGL_J2250.4-4206_daily_bin1475.fits outfile=/scratch/kocevski/517183/cmap_HighResolution_621648001_621907201_4FGL_J2250.4-4206_daily_bin1475.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.45
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/517183/ft1_filtered_4FGL_J2250.4-4206_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/517183/ft2_4FGL_J2250.4-4206_daily_bin1475.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/517183/Model_4FGL_J2250.4-4206_daily_bin1475.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/517183/ft1_filtered_4FGL_J2250.4-4206_daily_bin1475.fits.....................!
real 39.87
user 38.70
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.239       1.0000         .10000E-03   10000.    
     4 'norm      '    6.3937       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2876       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4985       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11431E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .35156E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.050       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7482       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1473       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10987E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5374       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.6984       1.0000         .10000E-03   10000.    
    22 'norm      '    6.3750       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.866       1.0000         .10000E-03   10000.    
    24 'Prefactor '    31.470       1.0000         .10000E-03   10000.    
    25 'Prefactor '    48.026       1.0000         .10000E-03   10000.    
    26 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .90989E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    4.4382       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2919       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .59075       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=   6915.426     FROM MIGRAD    STATUS=CONVERGED    831 CALLS     4181 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.695        .13592E-05** at limit **
   2  Prefactor     .10000E-03    3.3605       -.19041E-07** at limit **
   3  Prefactor     12.250        52.450       -.19254E-05    .13666E-04
   4  norm          6.3932        5.4768        .31771E-07    .60484E-05
   5  Prefactor     1.2845        2.9677        .98570E-07   -.54679E-03
   6  Prefactor     3.4980        3.5401        .11253E-06    .32134E-04
   7  Prefactor     .10000E-03    101.38       -.73857E-06** at limit **
   8  Prefactor     .10001E-03    8.4745        .44309E-05** at limit **
   9  Prefactor     19.050        17.357       -.93065E-07    .48371E-05
  10  Prefactor     .10000E-03    11.831        .12797E-05** at limit **
  11  Prefactor     7.7400        20.375        .95880E-06    .35364E-04
  12  Prefactor     2.1508        7.8950        .26036E-07   -.29582E-03
  13  Prefactor     .10000E-03    176.81        .69757E-07** at limit **
  14  Prefactor     .10000E-03    10.740       -.94175E-06** at limit **
  15  Prefactor     .10000E-03    6.2484        .31381E-06** at limit **
  16  Prefactor     .10000E-03    29.802        .29586E-06** at limit **
  17  Prefactor     .10000E-03    12.565       -.15552E-05** at limit **
  18  Prefactor     5.5376        11.359       -.57673E-06   -.95896E-04
  19  norm          .10000E-03    4.3441        .38910E-07** at limit **
  20  norm          .10000E-03    2.6948        .87117E-07** at limit **
  21  norm          4.6975        4.0637        .30256E-07   -.37614E-04
  22  norm          6.3743        5.6793        .55057E-07   -.24306E-04
  23  Prefactor     11.855        6.3547       -.87719E-06   -.74778E-04
  24  Prefactor     31.452        29.762       -.67273E-07   -.29852E-04
  25  Prefactor     48.020        46.618        .68219E-06   -.15816E-04
  26  norm          .10000E-03    2.5309        .13503E-06** at limit **
  27  Prefactor     .11062E-03    19.570       -.41952E-05** at limit **
  28  norm          .10000E-03    .37821        .19874E-06** at limit **
  29  norm          4.4376        3.5273        .27537E-07   -.44910E-04
  30  Normalizat    1.2922        .16582       -.21188E-06    .14466E-03
  31  Prefactor     .59051        .15604       -.14256E-06   -.47460E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2502
  norm       = 6.39324
  Prefactor  = 1.28447
  Prefactor  = 3.49797
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 19.0498
  Prefactor  = 0.0001
  Prefactor  = 7.74
  Prefactor  = 2.15078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.53759
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.69751
  norm       = 6.37427
  Prefactor  = 11.8555
  Prefactor  = 31.4524
  Prefactor  = 48.0201
  norm       = 0.0001
  Prefactor  = 0.000110616
  norm       = 0.0001
  norm       = 4.43764
  Normalizat = 1.29218
  Prefactor  = 0.590505
 **********
 **   18 **HESSE 
 **********

 FCN=   6915.426     FROM HESSE     STATUS=OK           636 CALLS     4817 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.3839        .14864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.250        52.415        .11450E-03   -1.5008    
   4  norm          6.3932        5.4786        .15873E-03   -1.5202    
   5  Prefactor     1.2845        11.278        .19527E-02   -1.5481    
   6  Prefactor     3.4980        3.5514        .14747E-03   -1.5334    
   7  Prefactor     .10000E-03    103.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    8.6949        .22675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.050        17.542        .91766E-04   -1.4835    
  10  Prefactor     .10000E-03    11.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.7400        19.993        .14406E-03   -1.5151    
  12  Prefactor     2.1508        8.4952        .14061E-02   -1.5415    
  13  Prefactor     .10000E-03    177.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.4549        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.5376        11.330        .17074E-03   -1.5237    
  19  norm          .10000E-03    4.3625        .16928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.7128        .13334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.6975        4.0224        .14725E-03   -1.5274    
  22  norm          6.3743        5.6771        .15897E-03   -1.5203    
  23  Prefactor     11.855        7.2832        .11629E-03   -1.5019    
  24  Prefactor     31.452        28.347        .71425E-04   -1.4586    
  25  Prefactor     48.020        46.779        .57861E-04   -1.4321    
  26  norm          .10000E-03    4.0779        .23426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .11062E-03    17.880        .67234E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    .50280        .97925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          4.4376        3.5036        .13040E-03   -1.5287    
  30  Normalizat    1.2922        .19780        .20199E-03   -.83800    
  31  Prefactor     .59051        .18113        .28698E-03   -1.0799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27324e-09
Minuit parameter uncertainties:
  1  4.0874e-05
  2  3.3107e-05
  3  50.7548
  4  5.47898
  5  7.61374
  6  3.55162
  7  0.000225614
  8  0.000495653
  9  17.5469
  10  3.85322e-05
  11  20.0101
  12  8.49994
  13  0.00019011
  14  0.000115592
  15  1.97346e-06
  16  5.32634e-06
  17  6.60509e-05
  18  11.3347
  19  2.52979e-06
  20  2.13307e-06
  21  4.02266
  22  5.67756
  23  7.28374
  24  28.3593
  25  46.8147
  26  3.92666e-05
  27  0.027563
  28  1.26583e-06
  29  3.50381
  30  0.19792
  31  0.181308
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  5.905e-01  1.813e-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.292e+00  1.979e-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: 4.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/517183/likelihoodResults_621648001_621907201_4FGL_J2250.4-4206_daily_bin1475.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) = 6915.42651133
delta logL = -0.000739354425605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6915.42577112
delta logL = 8.59258761921e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1396       1.0000          .0000       10.000    
     3 'Normalizat'    1.2922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59050       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.

 FCN=   6915.426     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      223 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    1.0133        .51406E-01** at limit **
   2  Index         2.2050        2.1650        .50000       -.86350E-04
   3  Normalizat    1.2922        .20405E-02    .32946E-01    .11137E-03
   4  Prefactor     .59051        .20446E-02    .64857E-01    .80693E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100015
  Index      = 2.205
  Normalizat = 1.29218
  Prefactor  = 0.590507
 **********
 **   18 **HESSE 
 **********

 FCN=   6915.426     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      256 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    353.62        .29779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2050        5.1259        .50000       -.59318    
   3  Normalizat    1.2922        .24650E-01    .20199E-03   -.83800    
   4  Prefactor     .59051        .24647E-01    .28698E-03   -1.0799    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.55549e-07
Minuit parameter uncertainties:
  1  0.00470592
  2  26.3064
  3  0.0246505
  4  0.0246477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/517183': 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) = 6915.4257698
delta logL = 2.18150125875e-06

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  4.706e-03  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.205e+00  2.631e+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:  5.905e-01  2.465e-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.292e+00  2.465e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/517183/cmap_HighResolution_621648001_621907201_4FGL_J2250.4-4206_daily_bin1475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-03', job_status='DONE', photon_flux_upper_limit='4.99e-08', time_completed='2021-09-28 23:03:07.890343', job_id='517183', GAL2='0.59', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1632895387.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='2.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1475' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 23:03:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 517183: <4FGL_J2250.4-4206_daily_bin1475> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin1475> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:50:14 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:50:15 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:50:15 2021
Terminated at Tue Sep 28 23:03:08 2021
Results reported at Tue Sep 28 23:03:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1475 342.606 -42.1095 621648001 621907201 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 :                                   735.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            774 sec.

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

