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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin1347
RA = 342.606, Dec = -42.1095
tmin = 588470401, tmax = 588729601
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='515953', job_status='RUN', time_executed='2021-09-28 22:46:11.223988', time_epoch_executed='1632894371.22' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='1347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/515953

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/515953/ft1_4FGL_J2250.4-4206_daily_bin1347.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/515953/ft2_4FGL_J2250.4-4206_daily_bin1347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/515953/ft1_4FGL_J2250.4-4206_daily_bin1347.fits outfile=/scratch/kocevski/515953/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin1347.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=588470401.0 tmax=588729601.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.91
user 4.60
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/515953/ft1_filtered_4FGL_J2250.4-4206_daily_bin1347.fits" evtable="EVENTS" scfile=/scratch/kocevski/515953/ft2_4FGL_J2250.4-4206_daily_bin1347.fits sctable="SC_DATA" outfile=/scratch/kocevski/515953/ltcube_588470401_588729601_4FGL_J2250.4-4206_daily_bin1347.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/515953/ft2_4FGL_J2250.4-4206_daily_bin1347.fits
.....................!
real 11.73
user 11.34
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/515953/ft1_filtered_4FGL_J2250.4-4206_daily_bin1347.fits evtable="EVENTS" scfile=/scratch/kocevski/515953/ft2_4FGL_J2250.4-4206_daily_bin1347.fits sctable="SC_DATA" expcube=/scratch/kocevski/515953/ltcube_588470401_588729601_4FGL_J2250.4-4206_daily_bin1347.fits outfile=/scratch/kocevski/515953/expmap_588470401_588729601_4FGL_J2250.4-4206_daily_bin1347.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/515953/ltcube_588470401_588729601_4FGL_J2250.4-4206_daily_bin1347.fits
.....................!
real 190.31
user 184.61
sys 5.38

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/515953/ft1_filtered_4FGL_J2250.4-4206_daily_bin1347.fits scfile=/scratch/kocevski/515953/ft2_4FGL_J2250.4-4206_daily_bin1347.fits outfile=/scratch/kocevski/515953/cmap_588470401_588729601_4FGL_J2250.4-4206_daily_bin1347.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/515953/ft1_filtered_4FGL_J2250.4-4206_daily_bin1347.fits scfile=/scratch/kocevski/515953/ft2_4FGL_J2250.4-4206_daily_bin1347.fits outfile=/scratch/kocevski/515953/cmap_HighResolution_588470401_588729601_4FGL_J2250.4-4206_daily_bin1347.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.4058       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3577       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5475       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.599       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0011       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.6228       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .47108       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.3341       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.673       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10707E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.128       1.0000         .10000E-03   10000.    
    28 'norm      '    .87027       1.0000         .10000E-03   10000.    
    29 'norm      '    4.5496       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0874       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .85487       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=   5961.355     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     4063 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.337       -.14233E-06** at limit **
   2  Prefactor     .10000E-03    2.6970        .26898E-08** at limit **
   3  Prefactor     .10000E-03    32.130        .26671E-06** at limit **
   4  norm          3.4060        3.7031       -.63316E-07    .24447E-05
   5  Prefactor     .10000E-03    4.1388        .13199E-06** at limit **
   6  Prefactor     2.3580        2.6745        .91140E-07   -.46283E-04
   7  Prefactor     .10000E-03    11.235        .74650E-07** at limit **
   8  Prefactor     1.5497        4.3244        .11492E-05   -.47044E-04
   9  Prefactor     .10000E-03    11.768        .13164E-06** at limit **
  10  Prefactor     21.604        23.589        .53664E-07    .18859E-04
  11  Prefactor     .10000E-03    19.814        .12313E-06** at limit **
  12  Prefactor     1.0012        5.0411        .17630E-06   -.10306E-03
  13  Prefactor     .10000E-03    37.577       -.35428E-06** at limit **
  14  Prefactor     6.6241        9.1587        .19834E-06   -.51771E-05
  15  Prefactor     .47344        3.1739        .96731E-07   -.46353E-04
  16  Prefactor     .10000E-03    10.349        .15827E-06** at limit **
  17  Prefactor     .10000E-03    12.899       -.12000E-06** at limit **
  18  Prefactor     .10000E-03    6.5426       -.32637E-07** at limit **
  19  norm          5.3341        7.9526        .18441E-05   -.71399E-04
  20  norm          .10000E-03    1.7377       -.52780E-08** at limit **
  21  norm          .10000E-03    1.4392       -.16505E-06** at limit **
  22  norm          .10000E-03    3.0245       -.38638E-07** at limit **
  23  Prefactor     .10000E-03    2.8382        .33298E-07** at limit **
  24  Prefactor     23.652        27.503       -.48601E-07   -.69220E-04
  25  Prefactor     .10000E-03    17.845        .32347E-07** at limit **
  26  norm          .10000E-03    1.5609       -.53972E-06** at limit **
  27  Prefactor     17.130        13.672        .89220E-08   -.19664E-04
  28  norm          .87059        1.0876        .17120E-06   -.94915E-05
  29  norm          4.5509        3.7200        .41686E-07    .40512E-04
  30  Normalizat    1.0869        .17284        .59050E-07   -.65623E-04
  31  Prefactor     .85537        .17184       -.78625E-06   -.13085E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.40596
  Prefactor  = 0.0001
  Prefactor  = 2.35797
  Prefactor  = 0.0001
  Prefactor  = 1.54965
  Prefactor  = 0.0001
  Prefactor  = 21.6041
  Prefactor  = 0.0001
  Prefactor  = 1.00121
  Prefactor  = 0.0001
  Prefactor  = 6.62408
  Prefactor  = 0.473435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.33407
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.6523
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.1302
  norm       = 0.870593
  norm       = 4.55087
  Normalizat = 1.08695
  Prefactor  = 0.855365
 **********
 **   18 **HESSE 
 **********

 FCN=   5961.355     FROM HESSE     STATUS=OK           622 CALLS     4685 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.7046        .12383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.4060        3.7070        .15127E-03   -1.5339    
   5  Prefactor     .10000E-03    4.1952        .15339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3580        2.6618        .12916E-03   -1.5401    
   7  Prefactor     .10000E-03    11.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.5497        4.3165        .25506E-03   -1.5459    
   9  Prefactor     .10000E-03    11.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.604        23.584        .86185E-04   -1.4778    
  11  Prefactor     .10000E-03    19.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0012        18.007        .33111E-02   -1.5508    
  13  Prefactor     .10000E-03    37.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.6241        9.1615        .15593E-03   -1.5193    
  15  Prefactor     .47344        11.553        .26306E-02   -1.5570    
  16  Prefactor     .10000E-03    10.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.5608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.3341        7.9459        .87006E-03   -1.5246    
  20  norm          .10000E-03    1.7380        .99394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.4394        .90428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.0396        .13111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.8484        .12671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     23.652        27.452        .82328E-04   -1.4735    
  25  Prefactor     .10000E-03    17.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.5606        .93809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     17.130        13.597        .96775E-04   -1.4880    
  28  norm          .87059        1.0553        .84293E-04   -1.5521    
  29  norm          4.5509        3.7147        .12654E-03   -1.5281    
  30  Normalizat    1.0869        .20255        .21846E-03   -.90172    
  31  Prefactor     .85537        .20085        .25096E-03   -.97719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2445e-08
Minuit parameter uncertainties:
  1  6.34453e-05
  2  2.25843e-06
  3  0.000139767
  4  3.70727
  5  4.25821e-06
  6  2.66195
  7  1.15215e-05
  8  4.31739
  9  1.04276e-05
  10  23.594
  11  6.18706e-05
  12  8.49462
  13  0.000213519
  14  9.16347
  15  4.67788
  16  4.95791e-05
  17  4.71334e-05
  18  1.11582e-05
  19  7.94752
  20  5.13862e-07
  21  1.0678e-06
  22  2.66354e-06
  23  2.87338e-06
  24  27.4666
  25  1.32371e-05
  26  3.64807e-06
  27  13.5998
  28  1.05532
  29  3.7149
  30  0.202691
  31  0.201021
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  4.734e-01  4.678e+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.554e-01  2.010e-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.087e+00  2.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
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/515953/likelihoodResults_588470401_588729601_4FGL_J2250.4-4206_daily_bin1347.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) = 5961.35456686
delta logL = 6.2382431679e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5961.35456594
delta logL = 6.33079889667e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47344       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0609       1.0000          .0000       10.000    
     3 'Normalizat'    1.0870       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85534       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=   5961.355     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      235 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49072        8.3360        .73185E-01    .50923E-03
   2  Index         2.0580        .64362        .50000        .45007E-05
   3  Normalizat    1.0870        .65354E-02    .38554E-01    .15425E-04
   4  Prefactor     .85531        .67772E-02    .44433E-01    .17829E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.490721
  Index      = 2.058
  Normalizat = 1.08701
  Prefactor  = 0.855311
 **********
 **   18 **HESSE 
 **********

 FCN=   5961.355     FROM HESSE     STATUS=OK            35 CALLS      270 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49072        14.884        .26801E-02   -1.5568    
   2  Index         2.0580        2.4275        .74193E-02   -.62908    
   3  Normalizat    1.0870        .19249        .21845E-03   -.90170    
   4  Prefactor     .85531        .20018        .25097E-03   -.97721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45303e-08
Minuit parameter uncertainties:
  1  5.40607
  2  2.60379
  3  0.19261
  4  0.200347
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/515953': 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) = 5961.35455975
delta logL = 6.9498686571e-05

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  4.907e-01  5.406e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.058e+00  2.604e+00  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.553e-01  2.003e-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.087e+00  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/515953/cmap_HighResolution_588470401_588729601_4FGL_J2250.4-4206_daily_bin1347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-03', job_status='DONE', photon_flux_upper_limit='5.32e-08', time_completed='2021-09-28 23:00:23.007394', job_id='515953', GAL2='0.86', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1632895223.01', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='6.95e-05', ts2='0.01', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1347' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 23:00:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 515953: <4FGL_J2250.4-4206_daily_bin1347> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin1347 342.606 -42.1095 588470401 588729601 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 :                                   838.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

