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


Performing analysis on: 4FGL_J2250.0-1250_daily_bin1411
RA = 342.505, Dec = -12.8485
tmin = 605059201, tmax = 605318401
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='509266', job_status='RUN', time_executed='2021-09-28 22:27:13.023689', time_epoch_executed='1632893233.02' WHERE source_name='4FGL J2250.0-1250' and cadence='daily' and bin_id='1411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/509266

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/509266/ft1_4FGL_J2250.0-1250_daily_bin1411.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/509266/ft2_4FGL_J2250.0-1250_daily_bin1411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/509266/ft1_4FGL_J2250.0-1250_daily_bin1411.fits outfile=/scratch/kocevski/509266/ft1_filteredMKT_4FGL_J2250.0-1250_daily_bin1411.fits ra=342.505 dec=-12.8485 rad=12.0 tmin=605059201.0 tmax=605318401.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.36
user 5.08
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/509266/ft2_4FGL_J2250.0-1250_daily_bin1411.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/509266/ft1_filteredMKT_4FGL_J2250.0-1250_daily_bin1411.fits evtable="EVENTS" outfile="/scratch/kocevski/509266/ft1_filtered_4FGL_J2250.0-1250_daily_bin1411.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.53
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/509266/ft1_filtered_4FGL_J2250.0-1250_daily_bin1411.fits" evtable="EVENTS" scfile=/scratch/kocevski/509266/ft2_4FGL_J2250.0-1250_daily_bin1411.fits sctable="SC_DATA" outfile=/scratch/kocevski/509266/ltcube_605059201_605318401_4FGL_J2250.0-1250_daily_bin1411.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/509266/ft2_4FGL_J2250.0-1250_daily_bin1411.fits
.....................!
real 11.82
user 11.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/509266/ft1_filtered_4FGL_J2250.0-1250_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/509266/ft2_4FGL_J2250.0-1250_daily_bin1411.fits sctable="SC_DATA" expcube=/scratch/kocevski/509266/ltcube_605059201_605318401_4FGL_J2250.0-1250_daily_bin1411.fits outfile=/scratch/kocevski/509266/expmap_605059201_605318401_4FGL_J2250.0-1250_daily_bin1411.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/509266/ltcube_605059201_605318401_4FGL_J2250.0-1250_daily_bin1411.fits
.....................!
real 191.33
user 185.46
sys 5.50

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/509266/ft1_filtered_4FGL_J2250.0-1250_daily_bin1411.fits scfile=/scratch/kocevski/509266/ft2_4FGL_J2250.0-1250_daily_bin1411.fits outfile=/scratch/kocevski/509266/cmap_605059201_605318401_4FGL_J2250.0-1250_daily_bin1411.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/509266/ft1_filtered_4FGL_J2250.0-1250_daily_bin1411.fits scfile=/scratch/kocevski/509266/ft2_4FGL_J2250.0-1250_daily_bin1411.fits outfile=/scratch/kocevski/509266/cmap_HighResolution_605059201_605318401_4FGL_J2250.0-1250_daily_bin1411.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/509266/ft1_filtered_4FGL_J2250.0-1250_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/509266/ft2_4FGL_J2250.0-1250_daily_bin1411.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/509266/Model_4FGL_J2250.0-1250_daily_bin1411.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/509266/ft1_filtered_4FGL_J2250.0-1250_daily_bin1411.fits.....................!
real 47.58
user 46.27
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    86.144       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.074       1.0000         .10000E-03   10000.    
     6 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    199.05       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3194       1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11142E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    16.683       1.0000         .10000E-03   10000.    
    12 'Prefactor '    130.80       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    61.074       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.893       1.0000         .10000E-03   10000.    
    17 'Prefactor '    51.787       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.5034       1.0000         .10000E-03   10000.    
    19 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .47676       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.6470       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=   4907.882     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2620 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.414       -.26487E-09** at limit **
   2  Prefactor     .10000E-03    4.7280        .19333E-08** at limit **
   3  Prefactor     86.149        130.23        .30426E-06    .60596E-06
   4  Prefactor     .10000E-03    1.2256        .20149E-08** at limit **
   5  Prefactor     19.069        85.042       -.89627E-06    .50042E-06
   6  norm          .10000E-03    3.1419        .18611E-07** at limit **
   7  Prefactor     199.06        129.98        .24600E-06    .11938E-05
   8  Prefactor     5.3195        12.728        .10025E-06   -.38704E-04
   9  norm          .10000E-03    .70352       -.22778E-08** at limit **
  10  Prefactor     .10001E-03    67.147        .38095E-05** at limit **
  11  norm          16.674        4.1652       -.26590E-06   -.17748E-03
  12  Prefactor     130.80        88.394        .83494E-07   -.37635E-04
  13  Prefactor     .10000E-03    4.8199        .68847E-08** at limit **
  14  Prefactor     .10000E-03    9.5531        .90153E-08** at limit **
  15  norm          61.070        29.704        .22807E-06    .40673E-05
  16  Prefactor     18.886        135.97       -.12602E-05    .13119E-05
  17  Prefactor     51.768        44.709       -.23526E-06    .36854E-05
  18  Prefactor     8.4995        18.392        .29292E-07   -.12430E-04
  19  norm          .10000E-03    8.2689       -.38043E-07** at limit **
  20  Prefactor     .10000E-03    49.281       -.37740E-08** at limit **
  21  Prefactor     .10000E-03    14.909       -.90281E-08** at limit **
  22  Normalizat    .47682        .33398       -.36412E-06   -.38059E-04
  23  Prefactor     1.6470        .24625        .67963E-07   -.32971E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 86.1486
  Prefactor  = 0.0001
  Prefactor  = 19.0687
  norm       = 0.0001
  Prefactor  = 199.056
  Prefactor  = 5.31955
  norm       = 0.0001
  Prefactor  = 0.000100008
  norm       = 16.6744
  Prefactor  = 130.805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 61.0697
  Prefactor  = 18.886
  Prefactor  = 51.7678
  Prefactor  = 8.4995
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.476821
  Prefactor  = 1.64699
 **********
 **   18 **HESSE 
 **********

 FCN=   4907.882     FROM HESSE     STATUS=OK           374 CALLS     2994 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.7294        .14878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     86.149        130.50        .43285E-04   -1.3849    
   4  Prefactor     .10000E-03    1.2266        .75736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.069        84.927        .91708E-04   -1.4834    
   6  norm          .10000E-03    3.1851        .12111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     199.06        129.88        .28638E-04   -1.2877    
   8  Prefactor     5.3195        12.692        .17426E-03   -1.5247    
   9  norm          .10000E-03    .72645        .11449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    138.85        .10849       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.674        5.6522        .53613E-04   -1.4891    
  12  Prefactor     130.80        92.448        .35207E-04   -1.3416    
  13  Prefactor     .10000E-03    4.8207        .15022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.5688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          61.070        29.736        .51343E-04   -1.4143    
  16  Prefactor     18.886        131.35        .92146E-04   -1.4839    
  17  Prefactor     51.768        44.596        .27866E-03   -1.4268    
  18  Prefactor     8.4995        18.138        .13747E-03   -1.5125    
  19  norm          .10000E-03    8.3032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    49.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .47682        .34540        .51705E-03   -1.1350    
  23  Prefactor     1.6470        .26323        .23079E-03   -.73502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21056e-11
Minuit parameter uncertainties:
  1  4.27796e-07
  2  8.94702e-07
  3  130.937
  4  7.23954e-07
  5  80.6763
  6  8.55875e-06
  7  130.068
  8  12.6989
  9  1.32152e-06
  10  0.00214042
  11  5.6524
  12  92.5501
  13  1.80238e-06
  14  9.08224e-07
  15  29.7437
  16  99.9282
  17  44.625
  18  18.1501
  19  3.53548e-05
  20  3.21162e-05
  21  1.57355e-05
  22  0.346968
  23  0.263455
Done.

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

Extracting fit parameters...

4FGL J2250.0-1250
   Spectrum: LogParabola
266         norm:  1.667e+01  5.652e+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.647e+00  2.635e-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:  4.768e-01  3.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 61.00
Ra Dec: 342.505 -12.848
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 5.76e-07 +/- 1.95e-07
Energy Flux (Fixed Index): 2.42e-04 +/- 8.21e-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) = 4907.69334054
delta logL = 0.188373291435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4907.68315583
delta logL = 0.198557996695

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.042       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5282       1.0000          .0000       5.0000    
     3 'Normalizat'    .42721       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6699       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=   4907.683     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      266 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.042        4.9927        .48045E-04    .18624E-02
   2  alpha         2.5282        .22362        .30980E-03    .27045E-03
   3  Normalizat    .42747        .33667        .54343E-03   -.89121E-05
   4  Prefactor     1.6697        .26076        .22932E-03   -.88146E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.0419
  alpha      = 2.52821
  Normalizat = 0.427474
  Prefactor  = 1.66968
 **********
 **   18 **HESSE 
 **********

 FCN=   4907.683     FROM HESSE     STATUS=OK            23 CALLS      289 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.042        4.9651        .96091E-05   -1.4958    
   2  alpha         2.5282        .22237        .12392E-04    .11284E-01
   3  Normalizat    .42747        .33652        .21737E-04   -1.1590    
   4  Prefactor     1.6697        .26068        .91727E-05   -.72892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19594e-10
Minuit parameter uncertainties:
  1  4.96528
  2  0.22266
  3  0.338129
  4  0.260896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/509266': 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) = 4907.68315535
delta logL = 0.198558473487

Extracting fit parameters...

4FGL J2250.0-1250
   Spectrum: LogParabola
266         norm:  1.404e+01  4.965e+00  1.000e-04  1.000e+04 ( 1.000e-12)
267        alpha:  2.528e+00  2.227e-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.670e+00  2.609e-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:  4.275e-01  3.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 65.44
Ra Dec: 342.505 -12.848
Photon Index (Free Index): 2.53 +/- 0.22
Photon Flux (Free Index): 6.36e-07 +/- 1.54e-07
Energy Flux (Free Index): 2.29e-04 +/- 4.83e-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/509266/cmap_HighResolution_605059201_605318401_4FGL_J2250.0-1250_daily_bin1411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.76e-07', energy_flux2='2.29e-04', photon_flux_error='1.95e-07', dlogl='1.99e-01', energy_flux='2.42e-04', photon_flux2='6.36e-07', job_status='DONE', time_completed='2021-09-28 22:36:19.051798', photon_index_error2='0.22', photon_index2='2.53', ts='61.00', fit_tolerance='1e-08', GAL='1.65', photon_index_error='0.00', energy_flux_error2='4.83e-05', EG='0.48', time_epoch_completed='1632893779.05', return_code='0', job_id='509266', GAL2='1.67', EG2='0.43', return_code2='0', energy_flux_error='8.21e-05', photon_flux_error2='1.54e-07', ts2='65.44', photon_index='2.39' WHERE bin_id='1411' AND source_name='4FGL J2250.0-1250' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:36:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 509266: <4FGL_J2250.0-1250_daily_bin1411> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0-1250_daily_bin1411 342.505 -12.8485 605059201 605318401 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 :                                   518.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            651 sec.

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

