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


Performing analysis on: 4FGL_J2250.0-1250_daily_bin1183
RA = 342.505, Dec = -12.8485
tmin = 545961601, tmax = 546220801
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='505899', job_status='RUN', time_executed='2021-09-28 22:22:27.753821', time_epoch_executed='1632892947.75' WHERE source_name='4FGL J2250.0-1250' and cadence='daily' and bin_id='1183'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/505899

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/505899/ft1_4FGL_J2250.0-1250_daily_bin1183.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/505899/ft2_4FGL_J2250.0-1250_daily_bin1183.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/505899/ft1_4FGL_J2250.0-1250_daily_bin1183.fits outfile=/scratch/kocevski/505899/ft1_filteredMKT_4FGL_J2250.0-1250_daily_bin1183.fits ra=342.505 dec=-12.8485 rad=12.0 tmin=545961601.0 tmax=546220801.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.11
user 3.83
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/505899/ft2_4FGL_J2250.0-1250_daily_bin1183.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/505899/ft2_4FGL_J2250.0-1250_daily_bin1183.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/505899/ft1_filteredMKT_4FGL_J2250.0-1250_daily_bin1183.fits evtable="EVENTS" outfile="/scratch/kocevski/505899/ft1_filtered_4FGL_J2250.0-1250_daily_bin1183.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.52
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/505899/ft1_filtered_4FGL_J2250.0-1250_daily_bin1183.fits" evtable="EVENTS" scfile=/scratch/kocevski/505899/ft2_4FGL_J2250.0-1250_daily_bin1183.fits sctable="SC_DATA" outfile=/scratch/kocevski/505899/ltcube_545961601_546220801_4FGL_J2250.0-1250_daily_bin1183.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/505899/ft2_4FGL_J2250.0-1250_daily_bin1183.fits
.....................!
real 12.32
user 11.85
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/505899/ft1_filtered_4FGL_J2250.0-1250_daily_bin1183.fits evtable="EVENTS" scfile=/scratch/kocevski/505899/ft2_4FGL_J2250.0-1250_daily_bin1183.fits sctable="SC_DATA" expcube=/scratch/kocevski/505899/ltcube_545961601_546220801_4FGL_J2250.0-1250_daily_bin1183.fits outfile=/scratch/kocevski/505899/expmap_545961601_546220801_4FGL_J2250.0-1250_daily_bin1183.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/505899/ltcube_545961601_546220801_4FGL_J2250.0-1250_daily_bin1183.fits
.....................!
real 192.99
user 187.27
sys 4.33

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 153 point sources and 0 extended sources

Setting source of interest to:
4FGL J2250.0-1250 @ 342.505 -12.8485

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/505899/ft1_filtered_4FGL_J2250.0-1250_daily_bin1183.fits scfile=/scratch/kocevski/505899/ft2_4FGL_J2250.0-1250_daily_bin1183.fits outfile=/scratch/kocevski/505899/cmap_545961601_546220801_4FGL_J2250.0-1250_daily_bin1183.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.505 yref=-12.8485 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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/505899/ft1_filtered_4FGL_J2250.0-1250_daily_bin1183.fits scfile=/scratch/kocevski/505899/ft2_4FGL_J2250.0-1250_daily_bin1183.fits outfile=/scratch/kocevski/505899/cmap_HighResolution_545961601_546220801_4FGL_J2250.0-1250_daily_bin1183.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.505 yref=-12.8485 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.56
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/505899/ft1_filtered_4FGL_J2250.0-1250_daily_bin1183.fits evtable="EVENTS" scfile=/scratch/kocevski/505899/ft2_4FGL_J2250.0-1250_daily_bin1183.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/505899/Model_4FGL_J2250.0-1250_daily_bin1183.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/505899/ft1_filtered_4FGL_J2250.0-1250_daily_bin1183.fits......................!
real 26.19
user 24.69
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/505899/ft1_filtered_4FGL_J2250.0-1250_daily_bin1183.fits', '/scratch/kocevski/505899/ft2_4FGL_J2250.0-1250_daily_bin1183.fits', expMap='/scratch/kocevski/505899/expmap_545961601_546220801_4FGL_J2250.0-1250_daily_bin1183.fits', expCube='/scratch/kocevski/505899/ltcube_545961601_546220801_4FGL_J2250.0-1250_daily_bin1183.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/505899/Model_4FGL_J2250.0-1250_daily_bin1183.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2250.0-1250'

4FGL J2250.0-1250
   Spectrum: LogParabola
266         norm:  3.029e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
267        alpha:  2.389e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
268         beta:  1.341e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
269           Eb:  1.722e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/505899/ft1_filtered_4FGL_J2250.0-1250_daily_bin1183.fits
Spacecraft file(s): /scratch/kocevski/505899/ft2_4FGL_J2250.0-1250_daily_bin1183.fits
Exposure map: /scratch/kocevski/505899/expmap_545961601_546220801_4FGL_J2250.0-1250_daily_bin1183.fits
Exposure cube: /scratch/kocevski/505899/ltcube_545961601_546220801_4FGL_J2250.0-1250_daily_bin1183.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/505899/Model_4FGL_J2250.0-1250_daily_bin1183.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) = 1921.0949954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11299E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.040       1.0000         .10000E-03   10000.    
     5 'Prefactor '    55.120       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13055E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.802       1.0000         .10000E-03   10000.    
     9 'norm      '    5.6100       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17114E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    4.4769       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19155E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .91767       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .23355       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3153       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1921.079     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2517 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.023        .11093E-08** at limit **
   2  Prefactor     .10000E-03    61.179       -.20533E-06** at limit **
   3  Prefactor     .10000E-03    220.22        .13852E-05** at limit **
   4  Prefactor     30.044        23.924       -.12997E-06    .49804E-04
   5  Prefactor     55.159        139.04       -.69658E-06   -.49213E-06
   6  norm          .10000E-03    5.1218       -.25436E-07** at limit **
   7  Prefactor     .10002E-03    605.48       -.35206E-05** at limit **
   8  Prefactor     16.812        15.967       -.31520E-06   -.17312E-06
   9  norm          5.6106        2.8035        .48844E-07   -.57598E-03
  10  Prefactor     .10453E-03    61.878       -.69533E-05** at limit **
  11  norm          4.4762        2.9804        .10037E-05   -.12306E-02
  12  Prefactor     .10000E-03    128.11       -.12654E-05** at limit **
  13  Prefactor     .10000E-03    17.914       -.87388E-07** at limit **
  14  Prefactor     .10000E-03    17.238       -.13605E-06** at limit **
  15  norm          .10000E-03    76.058        .66728E-07** at limit **
  16  Prefactor     .10000E-03    67.300        .16891E-06** at limit **
  17  Prefactor     .10000E-03    15.142       -.23315E-07** at limit **
  18  Prefactor     .10000E-03    14.019       -.51052E-07** at limit **
  19  norm          .10000E-03    8.0573       -.23698E-07** at limit **
  20  Prefactor     .10000E-03    379.05       -.74898E-07** at limit **
  21  Prefactor     .97214        35.078       -.62106E-06   -.15381E-03
  22  Normalizat    .23299        .44209        .10527E-04   -.12342E-03
  23  Prefactor     1.3158        .35752       -.30126E-05   -.13045E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 30.0438
  Prefactor  = 55.1586
  norm       = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 16.812
  norm       = 5.61063
  Prefactor  = 0.000104529
  norm       = 4.47624
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.972141
  Normalizat = 0.23299
  Prefactor  = 1.31576
 **********
 **   18 **HESSE 
 **********

 FCN=   1921.079     FROM HESSE     STATUS=OK           360 CALLS     2877 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    61.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    220.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.044        23.916        .73102E-04   -1.4611    
   5  Prefactor     55.159        138.74        .54028E-04   -1.4221    
   6  norm          .10000E-03    5.1314        .96873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    605.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.812        15.809        .97709E-04   -1.4888    
   9  norm          5.6106        2.7931        .46530E-04   -1.5234    
  10  Prefactor     .10453E-03    366.72        .59313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.4762        2.9236        .55823E-04   -1.5285    
  12  Prefactor     .10000E-03    128.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.928        .18122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.278        .17774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    76.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    67.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.143        .16662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.031        .16031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.0596        .12153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    380.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .97214        273.20        .45853E-02   -1.5511    
  22  Normalizat    .23299        .37823        .51320E-03   -1.2709    
  23  Prefactor     1.3158        .31237        .19041E-03   -.82840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4024e-08
Minuit parameter uncertainties:
  1  1.86529e-05
  2  0.000146658
  3  0.00183146
  4  23.924
  5  139.564
  6  1.10204e-06
  7  0.00728696
  8  15.8134
  9  2.79317
  10  0.0820163
  11  2.92369
  12  0.00122156
  13  1.92784e-05
  14  4.09123e-06
  15  0.000117185
  16  0.000198449
  17  1.94587e-06
  18  2.78687e-06
  19  1.18607e-06
  20  0.00011675
  21  32.744
  22  0.3825
  23  0.312818
Done.

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

Extracting fit parameters...

4FGL J2250.0-1250
   Spectrum: LogParabola
266         norm:  4.476e+00  2.924e+00  1.000e-04  1.000e+04 ( 1.000e-12)
267        alpha:  2.389e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
268         beta:  1.341e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
269           Eb:  1.722e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
487    Prefactor:  1.316e+00  3.128e-01  0.000e+00  1.000e+01 ( 1.000e+00)
488        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
489        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
486   Normalization:  2.330e-01  3.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.98
Ra Dec: 342.505 -12.848
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.54e-07 +/- 1.01e-07
Energy Flux (Fixed Index): 6.50e-05 +/- 4.24e-05

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) = 1921.07081076
delta logL = 0.0078593337073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1921.06310438
delta logL = 0.0155657170039

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0420       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4851       1.0000          .0000       5.0000    
     3 'Normalizat'    .22470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4900E+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=   1921.063     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      236 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0422        3.7197        .52239E-04   -.73923E-03
   2  alpha         2.4849        .56149        .59756E-02   -.68861E-04
   3  Normalizat    .22456        .36056        .52236E-03    .26922E-04
   4  Prefactor     1.3187        .30915        .19018E-03    .11409E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.04216
  alpha      = 2.48491
  Normalizat = 0.224559
  Prefactor  = 1.31865
 **********
 **   18 **HESSE 
 **********

 FCN=   1921.063     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0422        3.5856        .20895E-05   -1.5306    
   2  alpha         2.4849        .54117        .23902E-03   -.60380E-02
   3  Normalizat    .22456        .35986        .20894E-04   -1.2766    
   4  Prefactor     1.3187        .30874        .38035E-04   -.82754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91012e-10
Minuit parameter uncertainties:
  1  3.58576
  2  0.545486
  3  0.363674
  4  0.309166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/505899': 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) = 1921.0631042
delta logL = 0.0155658916822

Extracting fit parameters...

4FGL J2250.0-1250
   Spectrum: LogParabola
266         norm:  4.042e+00  3.586e+00  1.000e-04  1.000e+04 ( 1.000e-12)
267        alpha:  2.485e+00  5.455e-01  0.000e+00  5.000e+00 ( 1.000e+00)
268         beta:  1.341e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
269           Eb:  1.722e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
487    Prefactor:  1.319e+00  3.092e-01  0.000e+00  1.000e+01 ( 1.000e+00)
488        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
489        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
486   Normalization:  2.246e-01  3.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.04
Ra Dec: 342.505 -12.848
Photon Index (Free Index): 2.48 +/- 0.55
Photon Flux (Free Index): 1.68e-07 +/- 1.29e-07
Energy Flux (Free Index): 6.33e-05 +/- 4.08e-05

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/505899/cmap_HighResolution_545961601_546220801_4FGL_J2250.0-1250_daily_bin1183.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.54e-07', energy_flux2='6.33e-05', photon_flux_error='1.01e-07', dlogl='1.56e-02', energy_flux='6.50e-05', photon_flux2='1.68e-07', job_status='DONE', time_completed='2021-09-28 22:29:07.643893', photon_index_error2='0.55', photon_index2='2.48', ts='4.98', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', energy_flux_error2='4.08e-05', EG='0.23', time_epoch_completed='1632893347.64', return_code='0', job_id='505899', GAL2='1.32', EG2='0.22', return_code2='0', energy_flux_error='4.24e-05', photon_flux_error2='1.29e-07', ts2='5.04', photon_index='2.39' WHERE bin_id='1183' AND source_name='4FGL J2250.0-1250' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:29:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 505899: <4FGL_J2250.0-1250_daily_bin1183> in cluster <slac> Done

Job <4FGL_J2250.0-1250_daily_bin1183> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 22:20:48 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:20:56 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:20:56 2021
Terminated at Tue Sep 28 22:29:08 2021
Results reported at Tue Sep 28 22:29:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0-1250_daily_bin1183 342.505 -12.8485 545961601 546220801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2250.0-1250 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   382.20 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             289.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   491 sec.
    Turnaround time :                            500 sec.

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

