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


Performing analysis on: 4FGL_J2250.0-1250_daily_bin807
RA = 342.505, Dec = -12.8485
tmin = 448502401, tmax = 448761601
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='503268', job_status='RUN', time_executed='2021-09-28 22:17:40.013380', time_epoch_executed='1632892660.01' WHERE source_name='4FGL J2250.0-1250' and cadence='daily' and bin_id='807'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/503268

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/503268/ft1_4FGL_J2250.0-1250_daily_bin807.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/503268/ft2_4FGL_J2250.0-1250_daily_bin807.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/503268/ft1_4FGL_J2250.0-1250_daily_bin807.fits outfile=/scratch/kocevski/503268/ft1_filteredMKT_4FGL_J2250.0-1250_daily_bin807.fits ra=342.505 dec=-12.8485 rad=12.0 tmin=448502401.0 tmax=448761601.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 6.09
user 5.85
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/503268/ft2_4FGL_J2250.0-1250_daily_bin807.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/503268/ft1_filteredMKT_4FGL_J2250.0-1250_daily_bin807.fits evtable="EVENTS" outfile="/scratch/kocevski/503268/ft1_filtered_4FGL_J2250.0-1250_daily_bin807.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/503268/ft1_filtered_4FGL_J2250.0-1250_daily_bin807.fits" evtable="EVENTS" scfile=/scratch/kocevski/503268/ft2_4FGL_J2250.0-1250_daily_bin807.fits sctable="SC_DATA" outfile=/scratch/kocevski/503268/ltcube_448502401_448761601_4FGL_J2250.0-1250_daily_bin807.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/503268/ft2_4FGL_J2250.0-1250_daily_bin807.fits
.....................!
real 11.54
user 11.21
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/503268/ft1_filtered_4FGL_J2250.0-1250_daily_bin807.fits evtable="EVENTS" scfile=/scratch/kocevski/503268/ft2_4FGL_J2250.0-1250_daily_bin807.fits sctable="SC_DATA" expcube=/scratch/kocevski/503268/ltcube_448502401_448761601_4FGL_J2250.0-1250_daily_bin807.fits outfile=/scratch/kocevski/503268/expmap_448502401_448761601_4FGL_J2250.0-1250_daily_bin807.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/503268/ltcube_448502401_448761601_4FGL_J2250.0-1250_daily_bin807.fits
.....................!
real 189.96
user 185.30
sys 4.34

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/503268/ft1_filtered_4FGL_J2250.0-1250_daily_bin807.fits scfile=/scratch/kocevski/503268/ft2_4FGL_J2250.0-1250_daily_bin807.fits outfile=/scratch/kocevski/503268/cmap_448502401_448761601_4FGL_J2250.0-1250_daily_bin807.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.56
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/503268/ft1_filtered_4FGL_J2250.0-1250_daily_bin807.fits scfile=/scratch/kocevski/503268/ft2_4FGL_J2250.0-1250_daily_bin807.fits outfile=/scratch/kocevski/503268/cmap_HighResolution_448502401_448761601_4FGL_J2250.0-1250_daily_bin807.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/503268/ft1_filtered_4FGL_J2250.0-1250_daily_bin807.fits evtable="EVENTS" scfile=/scratch/kocevski/503268/ft2_4FGL_J2250.0-1250_daily_bin807.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/503268/Model_4FGL_J2250.0-1250_daily_bin807.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/503268/ft1_filtered_4FGL_J2250.0-1250_daily_bin807.fits....................!
real 53.94
user 52.57
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/503268/ft1_filtered_4FGL_J2250.0-1250_daily_bin807.fits', '/scratch/kocevski/503268/ft2_4FGL_J2250.0-1250_daily_bin807.fits', expMap='/scratch/kocevski/503268/expmap_448502401_448761601_4FGL_J2250.0-1250_daily_bin807.fits', expCube='/scratch/kocevski/503268/ltcube_448502401_448761601_4FGL_J2250.0-1250_daily_bin807.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/503268/Model_4FGL_J2250.0-1250_daily_bin807.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/503268/ft1_filtered_4FGL_J2250.0-1250_daily_bin807.fits
Spacecraft file(s): /scratch/kocevski/503268/ft2_4FGL_J2250.0-1250_daily_bin807.fits
Exposure map: /scratch/kocevski/503268/expmap_448502401_448761601_4FGL_J2250.0-1250_daily_bin807.fits
Exposure cube: /scratch/kocevski/503268/ltcube_448502401_448761601_4FGL_J2250.0-1250_daily_bin807.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/503268/Model_4FGL_J2250.0-1250_daily_bin807.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) = 5617.39454322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.255       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.3179       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.1589       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6967       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2694       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1784       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30857       1.0000         .10000E-03   10000.    
    15 'norm      '    88.874       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.960       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11145E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11562E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0327       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1107       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=   5617.337     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2545 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.263        13.676       -.74811E-06   -.33065E-04
   2  Prefactor     9.3232        16.394       -.12788E-05   -.39823E-04
   3  Prefactor     .10000E-03    34.316        .77539E-05** at limit **
   4  Prefactor     .10000E-03    1.6693        .35938E-07** at limit **
   5  Prefactor     .10000E-03    29.003       -.72872E-05** at limit **
   6  norm          5.1596        4.0575       -.14143E-06   -.22491E-03
   7  Prefactor     .10000E-03    30.353        .41549E-05** at limit **
   8  Prefactor     2.7109        32.276       -.48265E-05   -.72686E-04
   9  norm          1.2696        .89834       -.32880E-07   -.73960E-04
  10  Prefactor     .10000E-03    17.297        .16811E-06** at limit **
  11  norm          1.1787        1.0337       -.53182E-07   -.30540E-03
  12  Prefactor     .10000E-03    36.108       -.61605E-07** at limit **
  13  Prefactor     .10000E-03    4.5938       -.23680E-08** at limit **
  14  Prefactor     .34439        8.7620       -.10642E-05    .43041E-04
  15  norm          88.873        31.702       -.72160E-07   -.60629E-05
  16  Prefactor     .10000E-03    83.539        .47250E-04** at limit **
  17  Prefactor     18.949        33.440       -.30250E-05    .55614E-04
  18  Prefactor     .10000E-03    10.364       -.32949E-07** at limit **
  19  norm          .10000E-03    11.804       -.58369E-07** at limit **
  20  Prefactor     .10000E-03    158.98       -.31858E-04** at limit **
  21  Prefactor     .10000E-03    61.109       -.30770E-04** at limit **
  22  Normalizat    1.0321        .25922        .19043E-05    .11233E-03
  23  Prefactor     1.1110        .17724       -.13908E-06    .20571E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2635
  Prefactor  = 9.32318
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.15958
  Prefactor  = 0.0001
  Prefactor  = 2.71087
  norm       = 1.26957
  Prefactor  = 0.0001
  norm       = 1.17867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.344393
  norm       = 88.8726
  Prefactor  = 0.0001
  Prefactor  = 18.9486
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Normalizat = 1.03213
  Prefactor  = 1.11101
 **********
 **   18 **HESSE 
 **********

 FCN=   5617.337     FROM HESSE     STATUS=OK           366 CALLS     2911 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.263        13.849        .11002E-03   -1.4979    
   2  Prefactor     9.3232        16.412        .13129E-03   -1.5097    
   3  Prefactor     .10000E-03    34.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.6725        .94419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    29.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.1596        4.0538        .12628E-03   -1.5254    
   7  Prefactor     .10000E-03    30.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.7109        33.238        .24808E-03   -1.5379    
   9  norm          1.2696        .89346        .56872E-04   -1.5483    
  10  Prefactor     .10000E-03    17.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1787        1.0043        .67710E-04   -1.5491    
  12  Prefactor     .10000E-03    36.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.5970        .15688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .34439        90.835        .42331E-02   -1.5591    
  15  norm          88.873        31.720        .42620E-04   -1.3820    
  16  Prefactor     .10000E-03    83.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.949        33.409        .91983E-04   -1.4837    
  18  Prefactor     .10000E-03    10.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    11.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    159.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    61.738        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0321        .31581        .30996E-03   -.91962    
  23  Prefactor     1.1110        .21637        .22113E-03   -.89116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34264e-10
Minuit parameter uncertainties:
  1  13.8527
  2  16.4202
  3  6.1455e-06
  4  2.44751e-06
  5  3.48241e-06
  6  4.05406
  7  2.51438e-06
  8  18.9973
  9  0.893469
  10  3.85584e-06
  11  1.0043
  12  5.46626e-06
  13  1.48116e-06
  14  11.2018
  15  31.7257
  16  7.19596e-05
  17  33.4416
  18  1.24984e-05
  19  2.11639e-05
  20  0.00078692
  21  0.000794965
  22  0.316389
  23  0.216544
Done.

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

Extracting fit parameters...

4FGL J2250.0-1250
   Spectrum: LogParabola
266         norm:  1.179e+00  1.004e+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.111e+00  2.165e-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:  1.032e+00  3.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.38
Ra Dec: 342.505 -12.848
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 4.07e-08 +/- 3.47e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.46e-05

TS (Fixed Index): 2.38
Ra Dec: 342.505 -12.848
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/503268/likelihoodResults_448502401_448761601_4FGL_J2250.0-1250_daily_bin807.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) = 5617.01908884
delta logL = 0.318152467487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5616.99774844
delta logL = 0.339492871449

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7348       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8395       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0460       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1072       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.

 FCN=   5616.998     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7335        40.609        .79661E-02    .14192E-03
   2  alpha         1.8385        2.8316        .43132        .20554E-04
   3  Normalizat    1.0455        .10453        .69661E-01    .11339E-04
   4  Prefactor     1.1077        .63210E-01    .37319E-01   -.14612E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.73349
  alpha      = 1.83846
  Normalizat = 1.04554
  Prefactor  = 1.10768
 **********
 **   18 **HESSE 
 **********

 FCN=   5616.998     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7335        1.4756        .81194E-04   -1.5445    
   2  alpha         1.8385        .68022        .14684E-01   -.26781    
   3  Normalizat    1.0455        .28384        .30821E-03   -.91520    
   4  Prefactor     1.1077        .21122        .22140E-03   -.89222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68391e-12
Minuit parameter uncertainties:
  1  1.47564
  2  0.689585
  3  0.284253
  4  0.211381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/503268': 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) = 5616.99774433
delta logL = 0.339496980017

Extracting fit parameters...

4FGL J2250.0-1250
   Spectrum: LogParabola
266         norm:  1.733e+00  1.476e+00  1.000e-04  1.000e+04 ( 1.000e-12)
267        alpha:  1.838e+00  6.896e-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.108e+00  2.114e-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:  1.046e+00  2.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.06
Ra Dec: 342.505 -12.848
Photon Index (Free Index): 1.84 +/- 0.69
Photon Flux (Free Index): 2.37e-08 +/- 2.87e-08
Energy Flux (Free Index): 2.42e-05 +/- 2.40e-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/503268/cmap_HighResolution_448502401_448761601_4FGL_J2250.0-1250_daily_bin807.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-05', comment='SUCCESS', photon_flux='4.07e-08', energy_flux2='2.42e-05', photon_flux_error='3.47e-08', dlogl='3.39e-01', energy_flux='1.71e-05', photon_flux2='2.37e-08', job_status='DONE', time_completed='2021-09-28 22:27:21.916638', photon_index_error2='0.69', photon_index2='1.84', ts='2.38', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='2.40e-05', EG='1.03', time_epoch_completed='1632893241.92', return_code='0', job_id='503268', GAL2='1.11', EG2='1.05', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='2.87e-08', ts2='3.06', photon_index='2.39' WHERE bin_id='807' AND source_name='4FGL J2250.0-1250' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:27:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 503268: <4FGL_J2250.0-1250_daily_bin807> in cluster <slac> Done

Job <4FGL_J2250.0-1250_daily_bin807> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:15:26 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:15:27 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:15:27 2021
Terminated at Tue Sep 28 22:27:22 2021
Results reported at Tue Sep 28 22:27:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0-1250_daily_bin807 342.505 -12.8485 448502401 448761601 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 :                                   580.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            716 sec.

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

