/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 2 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 = 7384
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2250.4-4206_daily_bin102
RA = 342.606, Dec = -42.1095
tmin = 265766401, tmax = 266025601
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='509735', job_status='RUN', time_executed='2021-09-28 22:26:14.320139', time_epoch_executed='1632893174.32' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='102'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/509735

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/509735/ft1_4FGL_J2250.4-4206_daily_bin102.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/509735/ft2_4FGL_J2250.4-4206_daily_bin102.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/509735/ft1_4FGL_J2250.4-4206_daily_bin102.fits outfile=/scratch/kocevski/509735/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin102.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=265766401.0 tmax=266025601.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 1.46
user 1.25
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/509735/ft2_4FGL_J2250.4-4206_daily_bin102.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/509735/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin102.fits evtable="EVENTS" outfile="/scratch/kocevski/509735/ft1_filtered_4FGL_J2250.4-4206_daily_bin102.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/509735/ft1_filtered_4FGL_J2250.4-4206_daily_bin102.fits" evtable="EVENTS" scfile=/scratch/kocevski/509735/ft2_4FGL_J2250.4-4206_daily_bin102.fits sctable="SC_DATA" outfile=/scratch/kocevski/509735/ltcube_265766401_266025601_4FGL_J2250.4-4206_daily_bin102.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/509735/ft2_4FGL_J2250.4-4206_daily_bin102.fits
.....................!
real 12.52
user 12.17
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/509735/ft1_filtered_4FGL_J2250.4-4206_daily_bin102.fits evtable="EVENTS" scfile=/scratch/kocevski/509735/ft2_4FGL_J2250.4-4206_daily_bin102.fits sctable="SC_DATA" expcube=/scratch/kocevski/509735/ltcube_265766401_266025601_4FGL_J2250.4-4206_daily_bin102.fits outfile=/scratch/kocevski/509735/expmap_265766401_266025601_4FGL_J2250.4-4206_daily_bin102.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/509735/ltcube_265766401_266025601_4FGL_J2250.4-4206_daily_bin102.fits
.....................!
real 190.34
user 185.43
sys 4.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/509735/ft1_filtered_4FGL_J2250.4-4206_daily_bin102.fits scfile=/scratch/kocevski/509735/ft2_4FGL_J2250.4-4206_daily_bin102.fits outfile=/scratch/kocevski/509735/cmap_265766401_266025601_4FGL_J2250.4-4206_daily_bin102.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/509735/ft1_filtered_4FGL_J2250.4-4206_daily_bin102.fits scfile=/scratch/kocevski/509735/ft2_4FGL_J2250.4-4206_daily_bin102.fits outfile=/scratch/kocevski/509735/cmap_HighResolution_265766401_266025601_4FGL_J2250.4-4206_daily_bin102.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/509735/ft1_filtered_4FGL_J2250.4-4206_daily_bin102.fits evtable="EVENTS" scfile=/scratch/kocevski/509735/ft2_4FGL_J2250.4-4206_daily_bin102.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/509735/Model_4FGL_J2250.4-4206_daily_bin102.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/509735/ft1_filtered_4FGL_J2250.4-4206_daily_bin102.fits.....................!
real 41.34
user 40.00
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5981       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.164       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.317       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23446E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    82.592       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1516       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .86180E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .36978E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.384       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.356       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .24750       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9306       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    118.58       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .12166E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.7372       1.0000         .10000E-03   10000.    
    22 'norm      '    18.930       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10439E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11437E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12202E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.6918       1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.830       1.0000         .10000E-03   10000.    
    28 'norm      '    3.0202       1.0000         .10000E-03   10000.    
    29 'norm      '    .14069E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .89022       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .88909       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=   5128.687     FROM MIGRAD    STATUS=CONVERGED   1473 CALLS     4874 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.289        .18142E-02** at limit **
   2  Prefactor     1.5988        4.5684        .25380E-03   -.23786E-04
   3  Prefactor     .10000E-03    29.440        .18142E-02** at limit **
   4  norm          12.166        9.4354        .11486E-03    .77997E-05
   5  Prefactor     11.299        10.379        .11909E-03    .20515E-03
   6  Prefactor     .10000E-03    23.941        .20001E-02** at limit **
   7  Prefactor     82.579        58.934        .44198E-04    .12774E-03
   8  Prefactor     7.1512        5.2823        .13401E-03    .74483E-04
   9  Prefactor     .10003E-03    191.18        .67742E-02** at limit **
  10  Prefactor     .10024E-03    180.23        .66268E-02** at limit **
  11  Prefactor     23.399        28.936        .82833E-04    .26489E-04
  12  Prefactor     .10000E-03    6.6434        .17988E-02** at limit **
  13  Prefactor     46.389        91.399        .58890E-04   -.38996E-05
  14  Prefactor     .23682        70.428        .39131E-02    .14938E-03
  15  Prefactor     1.9300        3.3822        .17087E-03    .74652E-04
  16  Prefactor     .10000E-03    11.892        .18142E-02** at limit **
  17  Prefactor     118.54        77.668        .18477E-03    .84235E-04
  18  Prefactor     .10000E-03    22.010        .18142E-02** at limit **
  19  norm          .10000E-03    25.203        .18142E-02** at limit **
  20  norm          .10000E-03    3.1069        .12319E-02** at limit **
  21  norm          6.7394        4.9936        .12928E-03    .38165E-04
  22  norm          18.930        9.1856        .92055E-04    .27120E-04
  23  Prefactor     .10000E-03    3.2907        .12653E-02** at limit **
  24  Prefactor     .10000E-03    53.963        .18142E-02** at limit **
  25  Prefactor     .10000E-03    85.191        .18142E-02** at limit **
  26  norm          3.6879        4.2064        .72339E-03    .65677E-04
  27  Prefactor     17.830        14.885        .94852E-04    .48302E-04
  28  norm          3.0196        1.6114        .62551E-04    .23264E-03
  29  norm          .10000E-03    15.814        .21999E-02** at limit **
  30  Normalizat    .89043        .22023        .24664E-03    .41539E-03
  31  Prefactor     .88878        .20755        .24709E-03    .36006E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.59881
  Prefactor  = 0.0001
  norm       = 12.1655
  Prefactor  = 11.299
  Prefactor  = 0.0001
  Prefactor  = 82.5786
  Prefactor  = 7.15124
  Prefactor  = 0.000100035
  Prefactor  = 0.000100236
  Prefactor  = 23.3987
  Prefactor  = 0.0001
  Prefactor  = 46.3893
  Prefactor  = 0.236815
  Prefactor  = 1.93
  Prefactor  = 0.0001
  Prefactor  = 118.537
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.73938
  norm       = 18.9304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.6879
  Prefactor  = 17.8304
  norm       = 3.01956
  norm       = 0.0001
  Normalizat = 0.890427
  Prefactor  = 0.888779
 **********
 **   18 **HESSE 
 **********

 FCN=   5128.687     FROM HESSE     STATUS=OK           594 CALLS     5468 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.289        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5988        4.5683        .10152E-04   -1.5455    
   3  Prefactor     .10000E-03    29.440        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.166        9.4353        .22972E-04   -1.5010    
   5  Prefactor     11.299        10.367        .47636E-05   -1.5036    
   6  Prefactor     .10000E-03    24.304        .40003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     82.579        58.866        .88395E-05   -1.3888    
   8  Prefactor     7.1512        5.2815        .53605E-05   -1.5173    
   9  Prefactor     .10003E-03    196.52        .27097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10024E-03    184.21        .26507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.399        28.920        .33133E-05   -1.4740    
  12  Prefactor     .10000E-03    6.6443        .35975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     46.389        91.392        .11778E-04   -1.4345    
  14  Prefactor     .23682        71.638        .15652E-03   -1.5611    
  15  Prefactor     1.9300        3.3820        .68347E-05   -1.5430    
  16  Prefactor     .10000E-03    11.892        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     118.54        77.650        .73906E-05   -1.3526    
  18  Prefactor     .10000E-03    22.015        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    25.223        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.1069        .24637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.7394        4.9962        .51712E-05   -1.5189    
  22  norm          18.930        9.1849        .18411E-04   -1.4838    
  23  Prefactor     .10000E-03    3.2909        .25307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    53.977        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    85.205        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.6879        4.2042        .28936E-04   -1.5324    
  27  Prefactor     17.830        14.883        .37941E-05   -1.4863    
  28  norm          3.0196        1.6110        .25020E-05   -1.5360    
  29  norm          .10000E-03    15.938        .43997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .89043        .21938        .49328E-04   -.96797    
  31  Prefactor     .88878        .20761        .49418E-04   -.96534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98033e-09
Minuit parameter uncertainties:
  1  1.37723e-05
  2  4.56927
  3  5.10186e-05
  4  9.43641
  5  10.3687
  6  0.000196328
  7  58.9074
  8  5.28181
  9  0.00522604
  10  0.0132328
  11  28.9373
  12  1.988e-05
  13  91.6701
  14  8.24591
  15  3.38237
  16  1.02963e-06
  17  77.7171
  18  4.71318e-05
  19  0.000106332
  20  1.52865e-06
  21  4.99654
  22  9.18562
  23  6.60724e-06
  24  0.000152818
  25  0.000428663
  26  4.20451
  27  14.8857
  28  1.61105
  29  0.000125262
  30  0.219605
  31  0.207797
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  8.888e-01  2.078e-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:  8.904e-01  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.55
Ra Dec: 342.606 -42.109
Photon Flux Upper Limit: 5.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/509735/likelihoodResults_265766401_266025601_4FGL_J2250.4-4206_daily_bin102.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) = 5126.50871656
delta logL = 2.1778098212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5126.50559357
delta logL = 2.18093281111

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8277       1.0000         .10000E-03   10000.    
     2 'Index     '    .64681       1.0000          .0000       10.000    
     3 'Normalizat'    .88990       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88942       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=   5126.506     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      200 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8292        2.0417        .77190E-02   -.26118E-03
   2  Index         .64708        .44255        .25090       -.24716E-04
   3  Normalizat    .88991        .17658        .44772E-01    .11235E-04
   4  Prefactor     .88943        .17789        .44870E-01    .88882E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.82921
  Index      = 0.647075
  Normalizat = 0.889906
  Prefactor  = 0.889426
 **********
 **   18 **HESSE 
 **********

 FCN=   5126.506     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8292        3.1590        .96963E-04   -1.5437    
   2  Index         .64708        .64392        .11616E-01   -1.0564    
   3  Normalizat    .88991        .20351        .24638E-03   -.96816    
   4  Prefactor     .88943        .20504        .24686E-03   -.96512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.93928e-10
Minuit parameter uncertainties:
  1  3.15932
  2  0.651509
  3  0.20369
  4  0.205218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/509735': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5126.50559346
delta logL = 2.18093292038

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.829e+00  3.159e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  6.471e-01  6.515e-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.894e-01  2.052e-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:  8.899e-01  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.91
Ra Dec: 342.606 -42.109
Photon Index (Free Index): 0.65 +/- 0.65
Photon Flux (Free Index): 3.49e-09 +/- 3.66e-09
Energy Flux (Free Index): 9.99e-05 +/- 1.28e-04

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/509735/cmap_HighResolution_265766401_266025601_4FGL_J2250.4-4206_daily_bin102.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-03', comment='SUCCESS', energy_flux2='9.99e-05', dlogl='2.18e+00', photon_flux2='3.49e-09', job_status='DONE', time_completed='2021-09-28 22:39:47.473190', photon_index_error2='0.65', photon_index2='0.65', ts='0.55', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='5.32e-08', energy_flux_error2='1.28e-04', EG='0.89', time_epoch_completed='1632893987.47', return_code='0', job_id='509735', GAL2='0.89', EG2='0.89', return_code2='0', photon_flux_error2='3.66e-09', ts2='4.91', photon_index='2.09' WHERE bin_id='102' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:39:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 509735: <4FGL_J2250.4-4206_daily_bin102> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin102> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:26:01 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:26:03 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:26:03 2021
Terminated at Tue Sep 28 22:39:48 2021
Results reported at Tue Sep 28 22:39:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin102 342.606 -42.1095 265766401 266025601 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 :                                   798.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            827 sec.

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

