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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin758
RA = 342.606, Dec = -42.1095
tmin = 435801601, tmax = 436060801
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='514010', job_status='RUN', time_executed='2021-09-28 22:42:46.188641', time_epoch_executed='1632894166.19' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514010

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514010/ft1_4FGL_J2250.4-4206_daily_bin758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514010/ft2_4FGL_J2250.4-4206_daily_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514010/ft1_4FGL_J2250.4-4206_daily_bin758.fits outfile=/scratch/kocevski/514010/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin758.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=435801601.0 tmax=436060801.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 5.60
user 5.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514010/ft1_filtered_4FGL_J2250.4-4206_daily_bin758.fits" evtable="EVENTS" scfile=/scratch/kocevski/514010/ft2_4FGL_J2250.4-4206_daily_bin758.fits sctable="SC_DATA" outfile=/scratch/kocevski/514010/ltcube_435801601_436060801_4FGL_J2250.4-4206_daily_bin758.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/514010/ft2_4FGL_J2250.4-4206_daily_bin758.fits
.....................!
real 12.02
user 11.67
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514010/ft1_filtered_4FGL_J2250.4-4206_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/514010/ft2_4FGL_J2250.4-4206_daily_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/514010/ltcube_435801601_436060801_4FGL_J2250.4-4206_daily_bin758.fits outfile=/scratch/kocevski/514010/expmap_435801601_436060801_4FGL_J2250.4-4206_daily_bin758.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/514010/ltcube_435801601_436060801_4FGL_J2250.4-4206_daily_bin758.fits
.....................!
real 191.58
user 186.70
sys 4.51

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/514010/ft1_filtered_4FGL_J2250.4-4206_daily_bin758.fits scfile=/scratch/kocevski/514010/ft2_4FGL_J2250.4-4206_daily_bin758.fits outfile=/scratch/kocevski/514010/cmap_435801601_436060801_4FGL_J2250.4-4206_daily_bin758.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514010/ft1_filtered_4FGL_J2250.4-4206_daily_bin758.fits scfile=/scratch/kocevski/514010/ft2_4FGL_J2250.4-4206_daily_bin758.fits outfile=/scratch/kocevski/514010/cmap_HighResolution_435801601_436060801_4FGL_J2250.4-4206_daily_bin758.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.41
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/514010/ft1_filtered_4FGL_J2250.4-4206_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/514010/ft2_4FGL_J2250.4-4206_daily_bin758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514010/Model_4FGL_J2250.4-4206_daily_bin758.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/514010/ft1_filtered_4FGL_J2250.4-4206_daily_bin758.fits.....................!
real 28.70
user 27.37
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1629       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12658E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    299.71       1.0000         .10000E-03   10000.    
     4 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2756       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4374       1.0000         .10000E-03   10000.    
     9 'Prefactor '    57.060       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10569E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.978       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.643       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .19611E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    24.720       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .15156E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    16.073       1.0000         .10000E-03   10000.    
    29 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .67784       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1204       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=   2687.969     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4170 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1465        242.97       -.18896E-04   -.23738E-04
   2  Prefactor     .10053E-03    23.550        .14034E-04** at limit **
   3  Prefactor     299.86        216.13       -.25039E-04   -.10200E-03
   4  norm          .10000E-03    17.172        .11297E-05** at limit **
   5  Prefactor     .10000E-03    22.203        .32737E-06** at limit **
   6  Prefactor     7.2755        5.7662       -.75792E-07   -.13127E-04
   7  Prefactor     .10000E-03    95.709        .14854E-06** at limit **
   8  Prefactor     7.4409        12.571       -.84181E-06   -.78048E-04
   9  Prefactor     57.062        39.110        .19237E-07    .40506E-05
  10  Prefactor     .10000E-03    10.775        .14642E-07** at limit **
  11  Prefactor     .10001E-03    95.868       -.31325E-06** at limit **
  12  Prefactor     .10000E-03    16.325       -.43458E-06** at limit **
  13  Prefactor     25.724        139.92       -.38703E-04    .44017E-05
  14  Prefactor     .10000E-03    70.320       -.14308E-05** at limit **
  15  Prefactor     .10000E-03    12.878       -.47253E-06** at limit **
  16  Prefactor     22.598        56.598        .45095E-05   -.57545E-06
  17  Prefactor     .10000E-03    152.32       -.43657E-06** at limit **
  18  Prefactor     .10000E-03    11.677        .17968E-07** at limit **
  19  norm          .10000E-03    17.608       -.56565E-06** at limit **
  20  norm          .10000E-03    14.042       -.26930E-07** at limit **
  21  norm          .10000E-03    7.2161        .28162E-07** at limit **
  22  norm          24.707        26.136        .32287E-06   -.82763E-04
  23  Prefactor     .10000E-03    13.602        .86386E-06** at limit **
  24  Prefactor     .10000E-03    76.717        .19941E-05** at limit **
  25  Prefactor     .10000E-03    864.38        .23068E-04** at limit **
  26  norm          .10000E-03    7.5773        .84260E-07** at limit **
  27  Prefactor     .10000E-03    14.863       -.86680E-06** at limit **
  28  norm          16.070        4.5909       -.65987E-09   -.10815E-03
  29  norm          .10000E-03    4.9310        .76713E-07** at limit **
  30  Normalizat    .67803        .29663       -.19756E-05   -.70846E-04
  31  Prefactor     1.1203        .27644        .10883E-05   -.94061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.14653
  Prefactor  = 0.000100534
  Prefactor  = 299.862
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.27548
  Prefactor  = 0.0001
  Prefactor  = 7.44089
  Prefactor  = 57.0618
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100003
  Prefactor  = 25.7237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.5985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 24.7065
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 16.0697
  norm       = 0.0001
  Normalizat = 0.678034
  Prefactor  = 1.12032
 **********
 **   18 **HESSE 
 **********

 FCN=   2687.969     FROM HESSE     STATUS=OK           612 CALLS     4782 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1465        240.56        .28007E-03   -1.5415    
   2  Prefactor     .10053E-03    180.04        .41772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     299.86        221.57        .11730E-03   -1.2227    
   4  norm          .10000E-03    17.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.2755        5.7668        .10601E-03   -1.5168    
   7  Prefactor     .10000E-03    96.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.4409        12.552        .14706E-03   -1.5162    
   9  Prefactor     57.062        39.134        .53107E-04   -1.4196    
  10  Prefactor     .10000E-03    10.778        .16624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    96.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.724        140.22        .39298E-03   -1.4693    
  14  Prefactor     .10000E-03    71.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.598        56.599        .84176E-04   -1.4757    
  17  Prefactor     .10000E-03    152.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.680        .17306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    17.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    61.021        .36992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    7.2443        .13602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          24.707        26.139        .80568E-04   -1.4713    
  23  Prefactor     .10000E-03    13.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    76.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    867.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    7.7092        .13933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    14.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          16.070        4.4836        .55782E-04   -1.4906    
  29  norm          .10000E-03    4.9439        .11243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .67803        .34971        .30682E-03   -1.0477    
  31  Prefactor     1.1203        .32722        .23110E-03   -.88820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13644e-09
Minuit parameter uncertainties:
  1  45.6361
  2  0.0196724
  3  222.196
  4  2.14178e-05
  5  2.22427e-05
  6  5.76726
  7  5.5939e-05
  8  12.5564
  9  39.1514
  10  3.03923e-06
  11  0.00145282
  12  0.00047269
  13  120.556
  14  0.000120063
  15  2.44516e-05
  16  56.7338
  17  3.59807e-05
  18  9.82105e-06
  19  4.62914e-06
  20  0.000246486
  21  5.56788e-07
  22  26.1514
  23  1.17128e-05
  24  1.32585e-07
  25  0.00128621
  26  2.41446e-07
  27  9.83392e-06
  28  4.48368
  29  8.58182e-07
  30  0.350861
  31  0.327812
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.445e-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:  1.120e+00  3.278e-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:  6.780e-01  3.509e-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: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514010/likelihoodResults_435801601_436060801_4FGL_J2250.4-4206_daily_bin758.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) = 2687.96887822
delta logL = -0.000365354314454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2687.96851269
delta logL = 1.76979028765e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10560E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1348       1.0000          .0000       10.000    
     3 'Normalizat'    .67805       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1203       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=   2687.969     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      215 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    270.84        .90712E-02** at limit **
   2  Index         2.1934        8.9017        .50000       -.39971E-04
   3  Normalizat    .67803        .28011E-01    .69327E-01    .41885E-04
   4  Prefactor     1.1203        .26683E-01    .36862E-01    .52815E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.19337
  Normalizat = 0.678034
  Prefactor  = 1.12032
 **********
 **   18 **HESSE 
 **********

 FCN=   2687.969     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      246 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    2270.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1934        6.1151        .50000       -.59599    
   3  Normalizat    .67803        .10389        .30682E-03   -1.0477    
   4  Prefactor     1.1203        .99169E-01    .23110E-03   -.88820    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.02168e-07
Minuit parameter uncertainties:
  1  0.00996905
  2  50.0113
  3  0.103924
  4  0.0991854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514010': 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) = 2687.96851197
delta logL = 8.92379375728e-07

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  9.969e-03  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.193e+00  5.001e+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:  1.120e+00  9.919e-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:  6.780e-01  1.039e-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/514010/cmap_HighResolution_435801601_436060801_4FGL_J2250.4-4206_daily_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.51e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-28 22:52:02.026735', job_id='514010', GAL2='1.12', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632894722.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='8.92e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='758' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:52:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 514010: <4FGL_J2250.4-4206_daily_bin758> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin758> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:40:15 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:40:17 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:40:17 2021
Terminated at Tue Sep 28 22:52:02 2021
Results reported at Tue Sep 28 22:52:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin758 342.606 -42.1095 435801601 436060801 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 :                                   553.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

