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


Performing analysis on: 4FGL_J2250.0+3825_daily_bin215
RA = 342.514, Dec = 38.4247
tmin = 295056001, tmax = 295315201
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='492461', job_status='RUN', time_executed='2021-09-28 21:40:35.754813', time_epoch_executed='1632890435.75' WHERE source_name='4FGL J2250.0+3825' and cadence='daily' and bin_id='215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/492461

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/492461/ft1_4FGL_J2250.0+3825_daily_bin215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/492461/ft2_4FGL_J2250.0+3825_daily_bin215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/492461/ft1_4FGL_J2250.0+3825_daily_bin215.fits outfile=/scratch/kocevski/492461/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin215.fits ra=342.514 dec=38.4247 rad=12.0 tmin=295056001.0 tmax=295315201.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 2.56
user 2.35
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/492461/ft2_4FGL_J2250.0+3825_daily_bin215.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/492461/ft2_4FGL_J2250.0+3825_daily_bin215.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/492461/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin215.fits evtable="EVENTS" outfile="/scratch/kocevski/492461/ft1_filtered_4FGL_J2250.0+3825_daily_bin215.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.47
user 0.33
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/492461/ft1_filtered_4FGL_J2250.0+3825_daily_bin215.fits" evtable="EVENTS" scfile=/scratch/kocevski/492461/ft2_4FGL_J2250.0+3825_daily_bin215.fits sctable="SC_DATA" outfile=/scratch/kocevski/492461/ltcube_295056001_295315201_4FGL_J2250.0+3825_daily_bin215.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/492461/ft2_4FGL_J2250.0+3825_daily_bin215.fits
.....................!
real 11.67
user 11.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/492461/ft1_filtered_4FGL_J2250.0+3825_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/492461/ft2_4FGL_J2250.0+3825_daily_bin215.fits sctable="SC_DATA" expcube=/scratch/kocevski/492461/ltcube_295056001_295315201_4FGL_J2250.0+3825_daily_bin215.fits outfile=/scratch/kocevski/492461/expmap_295056001_295315201_4FGL_J2250.0+3825_daily_bin215.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/492461/ltcube_295056001_295315201_4FGL_J2250.0+3825_daily_bin215.fits
.....................!
real 189.21
user 184.79
sys 4.07

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 163 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2250.0+3825 @ 342.514 38.4247

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/492461/ft1_filtered_4FGL_J2250.0+3825_daily_bin215.fits scfile=/scratch/kocevski/492461/ft2_4FGL_J2250.0+3825_daily_bin215.fits outfile=/scratch/kocevski/492461/cmap_295056001_295315201_4FGL_J2250.0+3825_daily_bin215.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.514 yref=38.4247 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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/492461/ft1_filtered_4FGL_J2250.0+3825_daily_bin215.fits scfile=/scratch/kocevski/492461/ft2_4FGL_J2250.0+3825_daily_bin215.fits outfile=/scratch/kocevski/492461/cmap_HighResolution_295056001_295315201_4FGL_J2250.0+3825_daily_bin215.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.514 yref=38.4247 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/492461/ft1_filtered_4FGL_J2250.0+3825_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/492461/ft2_4FGL_J2250.0+3825_daily_bin215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/492461/Model_4FGL_J2250.0+3825_daily_bin215.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/492461/ft1_filtered_4FGL_J2250.0+3825_daily_bin215.fits.....................!
real 140.27
user 138.72
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/492461/ft1_filtered_4FGL_J2250.0+3825_daily_bin215.fits', '/scratch/kocevski/492461/ft2_4FGL_J2250.0+3825_daily_bin215.fits', expMap='/scratch/kocevski/492461/expmap_295056001_295315201_4FGL_J2250.0+3825_daily_bin215.fits', expCube='/scratch/kocevski/492461/ltcube_295056001_295315201_4FGL_J2250.0+3825_daily_bin215.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/492461/Model_4FGL_J2250.0+3825_daily_bin215.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2250.0+3825'

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  3.066e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  1.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/492461/ft1_filtered_4FGL_J2250.0+3825_daily_bin215.fits
Spacecraft file(s): /scratch/kocevski/492461/ft2_4FGL_J2250.0+3825_daily_bin215.fits
Exposure map: /scratch/kocevski/492461/expmap_295056001_295315201_4FGL_J2250.0+3825_daily_bin215.fits
Exposure cube: /scratch/kocevski/492461/ltcube_295056001_295315201_4FGL_J2250.0+3825_daily_bin215.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/492461/Model_4FGL_J2250.0+3825_daily_bin215.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) = 11598.2798513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1965       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1753       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.266       1.0000         .10000E-03   10000.    
     4 'norm      '    2.7868       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10307E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.553       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8181       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.8810       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .68438       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11368E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4951       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10444E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4353       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82965       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11598.28     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2567 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1974        1.3360        .62144E-07   -.26551E-02
   2  Prefactor     1.2353        129.43        .22469E-04    .52744E-04
   3  Prefactor     10.223        24.402       -.80327E-05   -.33512E-03
   4  norm          2.7863        1.2517       -.23862E-07   -.59619E-04
   5  Prefactor     .10000E-03    24.350       -.62994E-07** at limit **
   6  Prefactor     .10000E-03    3.5374        .13015E-07** at limit **
   7  Prefactor     .10000E-03    49.708       -.13174E-06** at limit **
   8  norm          .10000E-03    1.5007        .72189E-07** at limit **
   9  Prefactor     46.555        20.872       -.15821E-06    .57719E-04
  10  Prefactor     7.8207        7.2761       -.15058E-06    .71919E-04
  11  Prefactor     .10000E-03    11.178       -.23713E-06** at limit **
  12  norm          4.8807        1.7600       -.93395E-08   -.14145E-02
  13  Prefactor     .60647        6.7150       -.96129E-06    .32243E-03
  14  Prefactor     .10001E-03    135.89        .66546E-05** at limit **
  15  norm          4.4945        3.5607        .10524E-05   -.30162E-02
  16  norm          .10000E-03    3.8175        .91062E-07** at limit **
  17  Prefactor     .10000E-03    34.195       -.20224E-07** at limit **
  18  norm          .10000E-03    .86958       -.56715E-07** at limit **
  19  Prefactor     .10000E-03    8.1569       -.10144E-06** at limit **
  20  Normalizat    1.4357        .21937        .65509E-06    .18104E-04
  21  Prefactor     .82958        .70670E-01    .12291E-06   -.77056E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.1974
  Prefactor  = 1.23527
  Prefactor  = 10.2232
  norm       = 2.78635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 46.5546
  Prefactor  = 7.82072
  Prefactor  = 0.0001
  norm       = 4.88075
  Prefactor  = 0.606473
  Prefactor  = 0.000100008
  norm       = 4.49446
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.43571
  Prefactor  = 0.829579
 **********
 **   18 **HESSE 
 **********

 FCN=   11598.28     FROM HESSE     STATUS=OK           319 CALLS     2886 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1974        1.3320        .45649E-04   -1.5171    
   2  Prefactor     1.2353        139.91        .42253E-03   -1.5486    
   3  Prefactor     10.223        25.761        .12505E-03   -1.5068    
   4  norm          2.7863        1.2523        .77605E-04   -1.5374    
   5  Prefactor     .10000E-03    24.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    51.486        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.7230        .25274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     46.555        20.861        .58766E-04   -1.4342    
  10  Prefactor     7.8207        7.1785        .14341E-03   -1.5149    
  11  Prefactor     .10000E-03    11.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.8807        1.7663        .40647E-03   -1.5266    
  13  Prefactor     .60647        69.952        .50536E-02   -1.5552    
  14  Prefactor     .10001E-03    138.26        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4945        5.1970        .94951E-03   -1.5284    
  16  norm          .10000E-03    3.8256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    34.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .87534        .98006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.1678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4357        .25619        .39521E-03   -.79601    
  21  Prefactor     .82958        .81442E-01    .16830E-03   -.98647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01259e-08
Minuit parameter uncertainties:
  1  1.332
  2  26.355
  3  25.7888
  4  1.25228
  5  6.25679e-07
  6  4.47203e-07
  7  5.92742e-05
  8  1.75158e-05
  9  20.8647
  10  7.17924
  11  1.11199e-05
  12  1.76629
  13  13.0413
  14  0.00214394
  15  5.1975
  16  3.18912e-06
  17  0.000196277
  18  1.18961e-06
  19  6.11208e-07
  20  0.256421
  21  0.0814534
Done.

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

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  4.655e+01  2.086e+01  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  1.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  8.296e-01  8.145e-02  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.436e+00  2.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.64
Ra Dec: 342.514 38.425
Photon Index (Fixed Index): 1.73 +/- 0.00
Photon Flux (Fixed Index): 5.65e-08 +/- 2.53e-08
Energy Flux (Fixed Index): 8.32e-05 +/- 3.73e-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) = 11598.0891342
delta logL = 0.187196130353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11598.0858929
delta logL = 0.190437466788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.162       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9503       1.0000          .0000       10.000    
     3 'Normalizat'    1.4178       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83181       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+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=   11598.09     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      279 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.160        27.535        .68561E-04   -.33595E-03
   2  Index         1.9504        .39529        .41581E-02   -.19178E-03
   3  Normalizat    1.4178        .23933        .39717E-03   -.17592E-03
   4  Prefactor     .83181        .79697E-01    .16806E-03   -.12206E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.1602
  Index      = 1.95035
  Normalizat = 1.41779
  Prefactor  = 0.831808
 **********
 **   18 **HESSE 
 **********

 FCN=   11598.09     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.160        25.200        .13712E-04   -1.4538    
   2  Index         1.9504        .36164        .16633E-03   -.65597    
   3  Normalizat    1.4178        .23891        .15887E-04   -.80115    
   4  Prefactor     .83181        .79700E-01    .33612E-04   -.98566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99282e-10
Minuit parameter uncertainties:
  1  25.208
  2  0.362145
  3  0.239102
  4  0.0797114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/492461': 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) = 11598.0858929
delta logL = 0.190437470126

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  3.416e+01  2.521e+01  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  1.950e+00  3.621e-01  0.000e+00  1.000e+01 (-1.000e+00)
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  8.318e-01  7.971e-02  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.418e+00  2.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.00
Ra Dec: 342.514 38.425
Photon Index (Free Index): 1.95 +/- 0.36
Photon Flux (Free Index): 7.55e-08 +/- 4.62e-08
Energy Flux (Free Index): 5.92e-05 +/- 3.91e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/492461/cmap_HighResolution_295056001_295315201_4FGL_J2250.0+3825_daily_bin215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.65e-08', energy_flux2='5.92e-05', photon_flux_error='2.53e-08', dlogl='1.90e-01', energy_flux='8.32e-05', photon_flux2='7.55e-08', job_status='DONE', time_completed='2021-09-28 21:54:48.987598', photon_index_error2='0.36', photon_index2='1.95', ts='19.64', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='3.91e-05', EG='1.44', time_epoch_completed='1632891288.99', return_code='0', job_id='492461', GAL2='0.83', EG2='1.42', return_code2='0', energy_flux_error='3.73e-05', photon_flux_error2='4.62e-08', ts2='20.00', photon_index='1.73' WHERE bin_id='215' AND source_name='4FGL J2250.0+3825' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:54:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 492461: <4FGL_J2250.0+3825_daily_bin215> in cluster <slac> Done

Job <4FGL_J2250.0+3825_daily_bin215> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 21:40:25 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:40: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 21:40:27 2021
Terminated at Tue Sep 28 21:54:49 2021
Results reported at Tue Sep 28 21:54:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0+3825_daily_bin215 342.514 38.4247 295056001 295315201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2250.0+3825 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   851.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             365.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            864 sec.

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

