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


Performing analysis on: 4FGL_J2250.0-1250_daily_bin1413
RA = 342.505, Dec = -12.8485
tmin = 605577601, tmax = 605836801
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='509269', job_status='RUN', time_executed='2021-09-28 22:26:39.910617', time_epoch_executed='1632893199.91' WHERE source_name='4FGL J2250.0-1250' and cadence='daily' and bin_id='1413'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/509269

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/509269/ft1_4FGL_J2250.0-1250_daily_bin1413.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/509269/ft2_4FGL_J2250.0-1250_daily_bin1413.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/509269/ft1_4FGL_J2250.0-1250_daily_bin1413.fits outfile=/scratch/kocevski/509269/ft1_filteredMKT_4FGL_J2250.0-1250_daily_bin1413.fits ra=342.505 dec=-12.8485 rad=12.0 tmin=605577601.0 tmax=605836801.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.01
user 4.74
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/509269/ft2_4FGL_J2250.0-1250_daily_bin1413.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/509269/ft1_filteredMKT_4FGL_J2250.0-1250_daily_bin1413.fits evtable="EVENTS" outfile="/scratch/kocevski/509269/ft1_filtered_4FGL_J2250.0-1250_daily_bin1413.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/509269/ft1_filtered_4FGL_J2250.0-1250_daily_bin1413.fits" evtable="EVENTS" scfile=/scratch/kocevski/509269/ft2_4FGL_J2250.0-1250_daily_bin1413.fits sctable="SC_DATA" outfile=/scratch/kocevski/509269/ltcube_605577601_605836801_4FGL_J2250.0-1250_daily_bin1413.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/509269/ft2_4FGL_J2250.0-1250_daily_bin1413.fits
.....................!
real 12.18
user 11.72
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/509269/ft1_filtered_4FGL_J2250.0-1250_daily_bin1413.fits evtable="EVENTS" scfile=/scratch/kocevski/509269/ft2_4FGL_J2250.0-1250_daily_bin1413.fits sctable="SC_DATA" expcube=/scratch/kocevski/509269/ltcube_605577601_605836801_4FGL_J2250.0-1250_daily_bin1413.fits outfile=/scratch/kocevski/509269/expmap_605577601_605836801_4FGL_J2250.0-1250_daily_bin1413.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/509269/ltcube_605577601_605836801_4FGL_J2250.0-1250_daily_bin1413.fits
.....................!
real 192.88
user 187.02
sys 5.35

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/509269/ft1_filtered_4FGL_J2250.0-1250_daily_bin1413.fits scfile=/scratch/kocevski/509269/ft2_4FGL_J2250.0-1250_daily_bin1413.fits outfile=/scratch/kocevski/509269/cmap_605577601_605836801_4FGL_J2250.0-1250_daily_bin1413.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/509269/ft1_filtered_4FGL_J2250.0-1250_daily_bin1413.fits scfile=/scratch/kocevski/509269/ft2_4FGL_J2250.0-1250_daily_bin1413.fits outfile=/scratch/kocevski/509269/cmap_HighResolution_605577601_605836801_4FGL_J2250.0-1250_daily_bin1413.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/509269/ft1_filtered_4FGL_J2250.0-1250_daily_bin1413.fits evtable="EVENTS" scfile=/scratch/kocevski/509269/ft2_4FGL_J2250.0-1250_daily_bin1413.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/509269/Model_4FGL_J2250.0-1250_daily_bin1413.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/509269/ft1_filtered_4FGL_J2250.0-1250_daily_bin1413.fits.....................!
real 43.60
user 42.37
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.087       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.572       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .66524       1.0000         .10000E-03   10000.    
     5 'Prefactor '    50.785       1.0000         .10000E-03   10000.    
     6 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.432       1.0000         .10000E-03   10000.    
     9 'norm      '    .42321       1.0000         .10000E-03   10000.    
    10 'Prefactor '    109.87       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3726       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.657       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.9879       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.899       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.0141       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12719E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .88348       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2454       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=   4396.727     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2709 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.087        19.277        .21850E-05   -.69000E-04
   2  Prefactor     .10000E-03    7.0182       -.59298E-07** at limit **
   3  Prefactor     32.532        81.701        .11996E-04   -.27033E-04
   4  Prefactor     .66529        4.5733        .73178E-06   -.26448E-03
   5  Prefactor     50.862        126.16        .15794E-04   -.14776E-04
   6  norm          .10000E-03    2.2030       -.10445E-06** at limit **
   7  Prefactor     .10000E-03    36.322        .10560E-04** at limit **
   8  Prefactor     13.422        22.766        .35894E-05   -.45175E-04
   9  norm          .42152        1.3219       -.59387E-06   -.87475E-03
  10  Prefactor     109.55        100.86        .16415E-04    .14997E-03
  11  norm          2.3984        8.1903       -.95325E-05    .18976E-03
  12  Prefactor     .10000E-03    37.479       -.10227E-04** at limit **
  13  Prefactor     23.635        20.960        .34393E-05   -.18183E-04
  14  Prefactor     .10000E-03    11.819       -.10065E-06** at limit **
  15  norm          8.9845        14.234        .18476E-06   -.12471E-04
  16  Prefactor     .10000E-03    23.787        .58045E-05** at limit **
  17  Prefactor     .10000E-03    17.887       -.12395E-06** at limit **
  18  Prefactor     .10000E-03    6.5489       -.57999E-07** at limit **
  19  norm          10.899        9.6489       -.22037E-06   -.13703E-04
  20  Prefactor     8.8687        168.06        .50026E-04   -.19202E-05
  21  Prefactor     .10000E-03    23.876       -.66156E-05** at limit **
  22  Normalizat    .88319        .29151       -.58987E-05    .88059E-05
  23  Prefactor     1.2458        .21140        .46312E-06   -.31203E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.0868
  Prefactor  = 0.0001
  Prefactor  = 32.5322
  Prefactor  = 0.665289
  Prefactor  = 50.8621
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4222
  norm       = 0.421523
  Prefactor  = 109.549
  norm       = 2.39841
  Prefactor  = 0.000100001
  Prefactor  = 23.6351
  Prefactor  = 0.0001
  norm       = 8.9845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.899
  Prefactor  = 8.86871
  Prefactor  = 0.000100005
  Normalizat = 0.883187
  Prefactor  = 1.24582
 **********
 **   18 **HESSE 
 **********

 FCN=   4396.727     FROM HESSE     STATUS=OK           368 CALLS     3077 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.087        19.265        .89366E-04   -1.4811    
   2  Prefactor     .10000E-03    7.0304        .17150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.532        81.690        .70210E-04   -1.4567    
   4  Prefactor     .66529        8.6348        .26624E-02   -1.5545    
   5  Prefactor     50.862        123.46        .56275E-04   -1.4280    
   6  norm          .10000E-03    2.2183        .96057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.422        22.827        .10929E-03   -1.4975    
   9  norm          .42152        1.2527        .11888E-03   -1.5578    
  10  Prefactor     109.55        100.48        .38372E-04   -1.3611    
  11  norm          2.3984        8.1551        .10509E-03   -1.5398    
  12  Prefactor     .10000E-03    37.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.635        20.979        .82356E-04   -1.4735    
  14  Prefactor     .10000E-03    11.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.9845        14.235        .13369E-03   -1.5108    
  16  Prefactor     .10000E-03    23.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.5583        .16566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.899        9.6485        .12135E-03   -1.5048    
  20  Prefactor     8.8687        169.74        .13350E-03   -1.5112    
  21  Prefactor     .10000E-03    24.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .88319        .34454        .34874E-03   -.97053    
  23  Prefactor     1.2458        .25184        .22826E-03   -.84933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09294e-10
Minuit parameter uncertainties:
  1  19.2705
  2  1.4603e-06
  3  81.973
  4  4.79408
  5  124.093
  6  2.79813e-06
  7  0.000248398
  8  22.8418
  9  1.25275
  10  100.634
  11  8.15885
  12  0.00034158
  13  20.9853
  14  2.81651e-05
  15  14.2406
  16  9.67724e-05
  17  7.91901e-05
  18  1.98877e-05
  19  9.6499
  20  77.8533
  21  0.000670831
  22  0.345401
  23  0.252089
Done.

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

Extracting fit parameters...

4FGL J2250.0-1250
   Spectrum: LogParabola
266         norm:  2.398e+00  8.159e+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.246e+00  2.521e-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:  8.832e-01  3.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.86
Ra Dec: 342.505 -12.848
Photon Flux Upper Limit: 2.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/509269/likelihoodResults_605577601_605836801_4FGL_J2250.0-1250_daily_bin1413.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) = 4396.72701929
delta logL = 5.42284496987e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4396.72697957
delta logL = 9.39442288654e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4270       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3792       1.0000          .0000       5.0000    
     3 'Normalizat'    .88372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2455       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=   4396.727     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      214 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4270        76.644        .65674E-02   -.23370E-03
   2  alpha         2.3792        3.5671        .22882        .45362E-04
   3  Normalizat    .88372        .10027        .78763E-01    .15691E-04
   4  Prefactor     1.2456        .67141E-01    .51637E-01    .59760E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 2.42695
  alpha      = 2.37919
  Normalizat = 0.883715
  Prefactor  = 1.24555
 **********
 **   18 **HESSE 
 **********

 FCN=   4396.727     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4270        3.5817        .10567E-03   -1.5396    
   2  alpha         2.3792        .76312        .11837E-01   -.48344E-01
   3  Normalizat    .88372        .31314        .34865E-03   -.97035    
   4  Prefactor     1.2456        .23978        .22829E-03   -.84941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65716e-10
Minuit parameter uncertainties:
  1  3.58203
  2  0.775526
  3  0.313784
  4  0.239991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/509269': 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) = 4396.72697957
delta logL = 9.39452620514e-05

Extracting fit parameters...

4FGL J2250.0-1250
   Spectrum: LogParabola
266         norm:  2.427e+00  3.582e+00  1.000e-04  1.000e+04 ( 1.000e-12)
267        alpha:  2.379e+00  7.755e-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.246e+00  2.400e-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:  8.837e-01  3.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 342.505 -12.848
Photon Index (Free Index): 2.38 +/- 0.78
Photon Flux (Free Index): 8.22e-08 +/- 9.60e-08
Energy Flux (Free Index): 3.50e-05 +/- 4.13e-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/509269/cmap_HighResolution_605577601_605836801_4FGL_J2250.0-1250_daily_bin1413.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-04', comment='SUCCESS', energy_flux2='3.50e-05', dlogl='9.39e-05', photon_flux2='8.22e-08', job_status='DONE', time_completed='2021-09-28 22:37:24.130370', photon_index_error2='0.78', photon_index2='2.38', ts='0.86', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='2.57e-07', energy_flux_error2='4.13e-05', EG='0.88', time_epoch_completed='1632893844.13', return_code='0', job_id='509269', GAL2='1.25', EG2='0.88', return_code2='0', photon_flux_error2='9.60e-08', ts2='1.02', photon_index='2.39' WHERE bin_id='1413' AND source_name='4FGL J2250.0-1250' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:37:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 509269: <4FGL_J2250.0-1250_daily_bin1413> in cluster <slac> Done

Job <4FGL_J2250.0-1250_daily_bin1413> 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) <bullet0066>, 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:37:24 2021
Results reported at Tue Sep 28 22:37:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0-1250_daily_bin1413 342.505 -12.8485 605577601 605836801 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 :                                   539.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             280.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            716 sec.

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

