/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 127 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2250.4-4206_daily_bin315
RA = 342.606, Dec = -42.1095
tmin = 320976001, tmax = 321235201
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='511024', job_status='RUN', time_executed='2021-09-28 22:32:47.528792', time_epoch_executed='1632893567.53' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511024

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511024/ft1_4FGL_J2250.4-4206_daily_bin315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511024/ft2_4FGL_J2250.4-4206_daily_bin315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511024/ft1_4FGL_J2250.4-4206_daily_bin315.fits outfile=/scratch/kocevski/511024/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin315.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=320976001.0 tmax=321235201.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.52
user 3.32
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/511024/ft2_4FGL_J2250.4-4206_daily_bin315.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/511024/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin315.fits evtable="EVENTS" outfile="/scratch/kocevski/511024/ft1_filtered_4FGL_J2250.4-4206_daily_bin315.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/511024/ft1_filtered_4FGL_J2250.4-4206_daily_bin315.fits" evtable="EVENTS" scfile=/scratch/kocevski/511024/ft2_4FGL_J2250.4-4206_daily_bin315.fits sctable="SC_DATA" outfile=/scratch/kocevski/511024/ltcube_320976001_321235201_4FGL_J2250.4-4206_daily_bin315.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/511024/ft2_4FGL_J2250.4-4206_daily_bin315.fits
.....................!
real 12.32
user 11.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511024/ft1_filtered_4FGL_J2250.4-4206_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/511024/ft2_4FGL_J2250.4-4206_daily_bin315.fits sctable="SC_DATA" expcube=/scratch/kocevski/511024/ltcube_320976001_321235201_4FGL_J2250.4-4206_daily_bin315.fits outfile=/scratch/kocevski/511024/expmap_320976001_321235201_4FGL_J2250.4-4206_daily_bin315.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/511024/ltcube_320976001_321235201_4FGL_J2250.4-4206_daily_bin315.fits
.....................!
real 193.26
user 186.73
sys 4.47

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/511024/ft1_filtered_4FGL_J2250.4-4206_daily_bin315.fits scfile=/scratch/kocevski/511024/ft2_4FGL_J2250.4-4206_daily_bin315.fits outfile=/scratch/kocevski/511024/cmap_320976001_321235201_4FGL_J2250.4-4206_daily_bin315.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511024/ft1_filtered_4FGL_J2250.4-4206_daily_bin315.fits scfile=/scratch/kocevski/511024/ft2_4FGL_J2250.4-4206_daily_bin315.fits outfile=/scratch/kocevski/511024/cmap_HighResolution_320976001_321235201_4FGL_J2250.4-4206_daily_bin315.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.063       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.4304       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .47100       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10338E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.532       1.0000         .10000E-03   10000.    
    11 'Prefactor '    49.090       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.290       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.270       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.523       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .51429       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    10.227       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.9973       1.0000         .10000E-03   10000.    
    28 'norm      '    8.4869       1.0000         .10000E-03   10000.    
    29 'norm      '    .11364E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0852       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0293       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=   4383.262     FROM MIGRAD    STATUS=CONVERGED    815 CALLS     4149 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.066        45.425       -.11851E-05    .27756E-04
   2  Prefactor     .10000E-03    7.1606        .13511E-06** at limit **
   3  Prefactor     .10000E-03    49.057       -.11269E-04** at limit **
   4  norm          2.4302        6.8323       -.13205E-05   -.31806E-03
   5  Prefactor     .10000E-03    3.3255       -.11862E-06** at limit **
   6  Prefactor     .46536        4.3100       -.14932E-05   -.27160E-03
   7  Prefactor     .10000E-03    19.128       -.14961E-05** at limit **
   8  Prefactor     .10000E-03    7.6528        .49109E-06** at limit **
   9  Prefactor     .10000E-03    11.054       -.26264E-05** at limit **
  10  Prefactor     25.531        25.181       -.14707E-05    .47823E-04
  11  Prefactor     49.085        35.558        .60812E-05    .73934E-04
  12  Prefactor     .10000E-03    7.7134       -.73760E-06** at limit **
  13  Prefactor     .10000E-03    37.075        .97928E-05** at limit **
  14  Prefactor     36.287        21.530       -.12362E-05    .26591E-04
  15  Prefactor     10.269        8.7793       -.73264E-06   -.47307E-03
  16  Prefactor     25.438        62.417       -.96766E-04    .19426E-04
  17  Prefactor     .10000E-03    206.33        .25336E-04** at limit **
  18  Prefactor     .10000E-03    9.1208        .14000E-05** at limit **
  19  norm          .10000E-03    4.8685        .14476E-06** at limit **
  20  norm          .10000E-03    3.8806        .44759E-07** at limit **
  21  norm          .10000E-03    2.6929       -.93999E-07** at limit **
  22  norm          .50818        8.1525       -.31598E-05   -.12559E-04
  23  Prefactor     .10000E-03    2.5703       -.10218E-06** at limit **
  24  Prefactor     .10000E-03    44.606       -.15262E-04** at limit **
  25  Prefactor     .10000E-03    55.958        .15757E-04** at limit **
  26  norm          10.227        6.0750        .64447E-07    .43633E-03
  27  Prefactor     9.9929        16.235       -.25811E-05   -.67290E-03
  28  norm          8.4868        2.4238        .45652E-10    .15589E-03
  29  norm          .10001E-03    4.8976       -.36014E-06** at limit **
  30  Normalizat    1.0853        .24535        .40105E-05    .28928E-03
  31  Prefactor     1.0293        .23193        .44257E-05    .22443E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.066
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.43017
  Prefactor  = 0.0001
  Prefactor  = 0.465357
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 25.5309
  Prefactor  = 49.0851
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.2872
  Prefactor  = 10.2695
  Prefactor  = 25.4378
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.50818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.2265
  Prefactor  = 9.99291
  norm       = 8.48684
  norm       = 0.000100005
  Normalizat = 1.08525
  Prefactor  = 1.02931
 **********
 **   18 **HESSE 
 **********

 FCN=   4383.262     FROM HESSE     STATUS=OK           618 CALLS     4767 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.066        45.450        .83408E-04   -1.4747    
   2  Prefactor     .10000E-03    7.1956        .17295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    49.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.4302        6.8151        .26249E-03   -1.5396    
   5  Prefactor     .10000E-03    3.3290        .11791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .46536        8.6741        .25657E-02   -1.5572    
   7  Prefactor     .10000E-03    19.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.7679        .17865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.531        25.196        .79279E-04   -1.4697    
  11  Prefactor     49.085        35.726        .57234E-04   -1.4306    
  12  Prefactor     .10000E-03    7.7552        .17947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    37.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.287        21.606        .66527E-04   -1.4502    
  15  Prefactor     10.269        8.7821        .62515E-03   -1.5067    
  16  Prefactor     25.438        62.363        .79292E-04   -1.4699    
  17  Prefactor     .10000E-03    209.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.1389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.8696        .14268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.8865        .12736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.6944        .10606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .50818        24.937        .36381E-02   -1.5565    
  23  Prefactor     .10000E-03    2.5719        .10364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    44.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    55.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          10.227        5.8743        .11692E-03   -1.5068    
  27  Prefactor     9.9929        16.315        .63366E-03   -1.5076    
  28  norm          8.4868        2.4262        .52172E-04   -1.5125    
  29  norm          .10001E-03    12.933        .27428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0853        .30593        .26687E-03   -.90227    
  31  Prefactor     1.0293        .28894        .26978E-03   -.91759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16283e-08
Minuit parameter uncertainties:
  1  45.518
  2  3.35484e-05
  3  5.08402e-05
  4  6.81731
  5  1.02108e-05
  6  4.01847
  7  4.14335e-06
  8  0.000296613
  9  2.07251e-05
  10  25.2066
  11  35.7416
  12  1.30904e-05
  13  4.05339e-05
  14  21.6104
  15  8.78323
  16  62.5233
  17  0.00164205
  18  4.61194e-05
  19  2.60292e-07
  20  7.72132e-07
  21  4.02502e-06
  22  7.12211
  23  3.99374e-06
  24  0.000135849
  25  8.82786e-05
  26  5.87462
  27  16.3226
  28  2.42623
  29  0.000526545
  30  0.306428
  31  0.28938
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.027e+01  8.783e+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:  1.029e+00  2.894e-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.085e+00  3.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.25
Ra Dec: 342.606 -42.109
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 3.85e-08 +/- 3.29e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 1.86e-05

TS (Fixed Index): 3.25
Ra Dec: 342.606 -42.109
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/511024/likelihoodResults_320976001_321235201_4FGL_J2250.4-4206_daily_bin315.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) = 4382.25129771
delta logL = 1.0110227917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4382.22838647
delta logL = 1.03393403233

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.156       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2355       1.0000          .0000       10.000    
     3 'Normalizat'    1.0976       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0284       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=   4382.228     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      216 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.156        11.413        .27608E-02    .37211E-02
   2  Index         1.2356        .41629        .20250       -.45622E-04
   3  Normalizat    1.0976        .23178        .60020E-01   -.83261E-04
   4  Prefactor     1.0284        .23007        .61039E-01   -.62428E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1563
  Index      = 1.23555
  Normalizat = 1.09763
  Prefactor  = 1.02842
 **********
 **   18 **HESSE 
 **********

 FCN=   4382.228     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.156        13.783        .11043E-03   -1.4982    
   2  Index         1.2356        .55178        .81475E-02   -.85244    
   3  Normalizat    1.0976        .28794        .26545E-03   -.89828    
   4  Prefactor     1.0284        .28610        .26994E-03   -.91788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98751e-08
Minuit parameter uncertainties:
  1  13.7868
  2  0.554403
  3  0.288355
  4  0.286528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511024': 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) = 4382.22838647
delta logL = 1.03393403675

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.316e+01  1.379e+01  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  1.236e+00  5.544e-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.028e+00  2.865e-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.098e+00  2.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.31
Ra Dec: 342.606 -42.109
Photon Index (Free Index): 1.24 +/- 0.55
Photon Flux (Free Index): 1.58e-08 +/- 1.83e-08
Energy Flux (Free Index): 1.18e-04 +/- 1.50e-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/511024/cmap_HighResolution_320976001_321235201_4FGL_J2250.4-4206_daily_bin315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.15e-03', comment='SUCCESS', photon_flux='3.85e-08', energy_flux2='1.18e-04', photon_flux_error='3.29e-08', dlogl='1.03e+00', energy_flux='2.18e-05', photon_flux2='1.58e-08', job_status='DONE', time_completed='2021-09-28 22:44:40.011718', photon_index_error2='0.55', photon_index2='1.24', ts='3.25', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.50e-04', EG='1.09', time_epoch_completed='1632894280.01', return_code='0', job_id='511024', GAL2='1.03', EG2='1.10', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='1.83e-08', ts2='5.31', photon_index='2.09' WHERE bin_id='315' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:44:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 511024: <4FGL_J2250.4-4206_daily_bin315> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin315> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 22:30:30 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:30:31 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:30:31 2021
Terminated at Tue Sep 28 22:44:40 2021
Results reported at Tue Sep 28 22:44:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin315 342.606 -42.1095 320976001 321235201 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 :                                   705.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            850 sec.

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

