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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1271
RA = 342.606, Dec = -42.1095
tmin = 568771201, tmax = 569030401
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='515834', job_status='RUN', time_executed='2021-09-28 22:48:49.060192', time_epoch_executed='1632894529.06' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/515834

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/515834/ft1_4FGL_J2250.4-4206_daily_bin1271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/515834/ft2_4FGL_J2250.4-4206_daily_bin1271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/515834/ft1_4FGL_J2250.4-4206_daily_bin1271.fits outfile=/scratch/kocevski/515834/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1271.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=568771201.0 tmax=569030401.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.56
user 3.33
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/515834/ft2_4FGL_J2250.4-4206_daily_bin1271.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/515834/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1271.fits evtable="EVENTS" outfile="/scratch/kocevski/515834/ft1_filtered_4FGL_J2250.4-4206_daily_bin1271.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.51
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/515834/ft1_filtered_4FGL_J2250.4-4206_daily_bin1271.fits" evtable="EVENTS" scfile=/scratch/kocevski/515834/ft2_4FGL_J2250.4-4206_daily_bin1271.fits sctable="SC_DATA" outfile=/scratch/kocevski/515834/ltcube_568771201_569030401_4FGL_J2250.4-4206_daily_bin1271.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/515834/ft2_4FGL_J2250.4-4206_daily_bin1271.fits
.....................!
real 11.99
user 11.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/515834/ft1_filtered_4FGL_J2250.4-4206_daily_bin1271.fits evtable="EVENTS" scfile=/scratch/kocevski/515834/ft2_4FGL_J2250.4-4206_daily_bin1271.fits sctable="SC_DATA" expcube=/scratch/kocevski/515834/ltcube_568771201_569030401_4FGL_J2250.4-4206_daily_bin1271.fits outfile=/scratch/kocevski/515834/expmap_568771201_569030401_4FGL_J2250.4-4206_daily_bin1271.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/515834/ltcube_568771201_569030401_4FGL_J2250.4-4206_daily_bin1271.fits
.....................!
real 191.25
user 185.37
sys 5.50

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/515834/ft1_filtered_4FGL_J2250.4-4206_daily_bin1271.fits scfile=/scratch/kocevski/515834/ft2_4FGL_J2250.4-4206_daily_bin1271.fits outfile=/scratch/kocevski/515834/cmap_568771201_569030401_4FGL_J2250.4-4206_daily_bin1271.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.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/515834/ft1_filtered_4FGL_J2250.4-4206_daily_bin1271.fits evtable="EVENTS" scfile=/scratch/kocevski/515834/ft2_4FGL_J2250.4-4206_daily_bin1271.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/515834/Model_4FGL_J2250.4-4206_daily_bin1271.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/515834/ft1_filtered_4FGL_J2250.4-4206_daily_bin1271.fits.....................!
real 36.30
user 34.95
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.840       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16945E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.892       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.175       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.807       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10778E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    68.628       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7399       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.117       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.3448       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.374       1.0000         .10000E-03   10000.    
    21 'norm      '    5.9598       1.0000         .10000E-03   10000.    
    22 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.738       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .67846       1.0000         .10000E-03   10000.    
    26 'norm      '    6.3588       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.3769       1.0000         .10000E-03   10000.    
    29 'norm      '    .79178       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1164       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .84546       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=   4286.834     FROM MIGRAD    STATUS=CONVERGED   1431 CALLS     4752 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.847        38.667        .77326E-04   -.12665E-03
   2  Prefactor     .10000E-03    28.585        .34588E-02** at limit **
   3  Prefactor     39.710        101.74        .31731E-03    .21676E-04
   4  norm          .10000E-03    4.1913        .13076E-02** at limit **
   5  Prefactor     22.174        15.157        .85059E-04    .46245E-04
   6  Prefactor     .10000E-03    4.2593        .25926E-03** at limit **
   7  Prefactor     .10000E-03    25.048        .18142E-02** at limit **
   8  Prefactor     12.807        7.2114        .55966E-03   -.19826E-04
   9  Prefactor     .10000E-03    35.167        .18142E-02** at limit **
  10  Prefactor     68.626        41.576        .48453E-04    .48429E-04
  11  Prefactor     .10000E-03    7.0493        .16975E-02** at limit **
  12  Prefactor     3.7407        9.1465        .20879E-03   -.13504E-04
  13  Prefactor     .10000E-03    30.353        .18142E-02** at limit **
  14  Prefactor     22.117        19.119        .85171E-04    .42847E-04
  15  Prefactor     .10000E-03    5.5550        .15035E-02** at limit **
  16  Prefactor     .10000E-03    12.133        .18142E-02** at limit **
  17  Prefactor     .10000E-03    85.934        .18142E-02** at limit **
  18  Prefactor     5.3445        20.723        .17384E-03    .48395E-05
  19  norm          .10000E-03    3.8651        .12571E-02** at limit **
  20  norm          11.374        9.0506        .11879E-03    .98575E-05
  21  norm          5.9600        6.0601        .76138E-03    .34462E-04
  22  norm          .10000E-03    18.292        .18142E-02** at limit **
  23  Prefactor     10.738        7.9889        .12227E-03    .65553E-04
  24  Prefactor     .10000E-03    35.153        .18142E-02** at limit **
  25  Prefactor     .54689        118.79        .18529        .47656E-04
  26  norm          6.3572        5.6114        .65123E-03    .39897E-03
  27  Prefactor     .10000E-03    9.1735        .18142E-02** at limit **
  28  norm          1.3771        1.3306        .69910E-04    .81797E-04
  29  norm          .79241        5.0434        .27328E-03    .95142E-04
  30  Normalizat    1.1165        .28460        .24668E-03    .26298E-03
  31  Prefactor     .84540        .25478        .27184E-03    .44205E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.8469
  Prefactor  = 0.0001
  Prefactor  = 39.7096
  norm       = 0.0001
  Prefactor  = 22.1737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8072
  Prefactor  = 0.0001
  Prefactor  = 68.6259
  Prefactor  = 0.0001
  Prefactor  = 3.74073
  Prefactor  = 0.0001
  Prefactor  = 22.1171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.34448
  norm       = 0.0001
  norm       = 11.3736
  norm       = 5.95998
  norm       = 0.0001
  Prefactor  = 10.7377
  Prefactor  = 0.0001
  Prefactor  = 0.546894
  norm       = 6.3572
  Prefactor  = 0.0001
  norm       = 1.37709
  norm       = 0.792408
  Normalizat = 1.11649
  Prefactor  = 0.845401
 **********
 **   18 **HESSE 
 **********

 FCN=   4286.834     FROM HESSE     STATUS=OK           602 CALLS     5354 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.847        38.662        .15465E-04   -1.4671    
   2  Prefactor     .10000E-03    28.869        .69177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     39.710        101.68        .12693E-04   -1.4447    
   4  norm          .10000E-03    4.1915        .26152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.174        15.157        .34023E-05   -1.4766    
   6  Prefactor     .10000E-03    4.2594        .51851E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.049        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.807        7.2116        .22386E-04   -1.4992    
   9  Prefactor     .10000E-03    35.171        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     68.626        41.578        .96905E-05   -1.4049    
  11  Prefactor     .10000E-03    7.0494        .33950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.7407        9.1462        .83515E-05   -1.5321    
  13  Prefactor     .10000E-03    30.354        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.117        19.121        .34068E-05   -1.4767    
  15  Prefactor     .10000E-03    5.5557        .30071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.133        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    85.939        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.3445        20.718        .69534E-05   -1.5246    
  19  norm          .10000E-03    3.8651        .25143E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.374        9.0504        .47516E-05   -1.5033    
  21  norm          5.9600        6.0610        .30455E-04   -1.5220    
  22  norm          .10000E-03    18.305        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.738        7.9883        .48906E-05   -1.5052    
  24  Prefactor     .10000E-03    35.155        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .54689        122.91        .18146       -1.5560    
  26  norm          6.3572        5.6096        .26049E-04   -1.5204    
  27  Prefactor     .10000E-03    9.1741        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.3771        1.3305        .27964E-05   -1.5473    
  29  norm          .79241        5.0380        .10931E-04   -1.5530    
  30  Normalizat    1.1165        .28501        .49337E-04   -.89224    
  31  Prefactor     .84540        .25508        .10874E-04   -.98076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.81997e-10
Minuit parameter uncertainties:
  1  38.6984
  2  5.88038e-06
  3  102.127
  4  3.53131e-06
  5  15.1595
  6  2.79737e-06
  7  8.95738e-05
  8  7.21214
  9  0.000240742
  10  41.5958
  11  1.14384e-05
  12  9.14966
  13  6.02692e-05
  14  19.1262
  15  1.87712e-05
  16  2.58746e-05
  17  0.000138319
  18  20.7456
  19  9.60336e-07
  20  9.05149
  21  6.06167
  22  0.000143359
  23  7.98911
  24  0.000206312
  25  16.4299
  26  5.61011
  27  2.2746e-05
  28  1.33048
  29  3.99631
  30  0.285402
  31  0.25544
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.877e-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:  8.454e-01  2.554e-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.116e+00  2.854e-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: 7.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/515834/likelihoodResults_568771201_569030401_4FGL_J2250.4-4206_daily_bin1271.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4286.83525218
delta logL = -0.000856437566654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4286.83439574
delta logL = 4.71118255518e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0939       1.0000          .0000       10.000    
     3 'Normalizat'    1.1165       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84541       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=   4286.834     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    110.84        .90712E-02** at limit **
   2  Index         2.1014        8.7640        .50000       -.11319E-04
   3  Normalizat    1.1165        .24722E-01    .55784E-01   -.20245E-04
   4  Prefactor     .84540        .24170E-01    .44305E-01   -.18401E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10141
  Normalizat = 1.11648
  Prefactor  = 0.845405
 **********
 **   18 **HESSE 
 **********

 FCN=   4286.834     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1208.0        .15067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1014        6.3300        .50000       -.61838    
   3  Normalizat    1.1165        .15895        .24668E-03   -.89224    
   4  Prefactor     .84540        .15531        .27184E-03   -.98076    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.34662e-08
Minuit parameter uncertainties:
  1  0.000142354
  2  61.2817
  3  0.159014
  4  0.155388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/515834': 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) = 4286.8343957
delta logL = 4.15357135353e-08

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.424e-04  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.101e+00  6.128e+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:  8.454e-01  1.554e-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.116e+00  1.590e-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/515834/cmap_HighResolution_568771201_569030401_4FGL_J2250.4-4206_daily_bin1271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.90e-03', job_status='DONE', photon_flux_upper_limit='7.81e-08', time_completed='2021-09-28 23:01:15.583755', job_id='515834', GAL2='0.85', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1632895275.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='4.15e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1271' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 23:01:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 515834: <4FGL_J2250.4-4206_daily_bin1271> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1271 342.606 -42.1095 568771201 569030401 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 :                                   718.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            942 sec.

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

