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


Performing analysis on: 4FGL_J2250.0+3825_daily_bin1410
RA = 342.514, Dec = 38.4247
tmin = 604800001, tmax = 605059201
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='498403', job_status='RUN', time_executed='2021-09-28 22:01:27.556440', time_epoch_executed='1632891687.56' WHERE source_name='4FGL J2250.0+3825' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498403

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498403/ft1_4FGL_J2250.0+3825_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498403/ft2_4FGL_J2250.0+3825_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498403/ft1_4FGL_J2250.0+3825_daily_bin1410.fits outfile=/scratch/kocevski/498403/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin1410.fits ra=342.514 dec=38.4247 rad=12.0 tmin=604800001.0 tmax=605059201.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.17
user 4.88
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/498403/ft2_4FGL_J2250.0+3825_daily_bin1410.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/498403/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin1410.fits evtable="EVENTS" outfile="/scratch/kocevski/498403/ft1_filtered_4FGL_J2250.0+3825_daily_bin1410.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/498403/ft1_filtered_4FGL_J2250.0+3825_daily_bin1410.fits" evtable="EVENTS" scfile=/scratch/kocevski/498403/ft2_4FGL_J2250.0+3825_daily_bin1410.fits sctable="SC_DATA" outfile=/scratch/kocevski/498403/ltcube_604800001_605059201_4FGL_J2250.0+3825_daily_bin1410.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/498403/ft2_4FGL_J2250.0+3825_daily_bin1410.fits
.....................!
real 12.00
user 11.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498403/ft1_filtered_4FGL_J2250.0+3825_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/498403/ft2_4FGL_J2250.0+3825_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/498403/ltcube_604800001_605059201_4FGL_J2250.0+3825_daily_bin1410.fits outfile=/scratch/kocevski/498403/expmap_604800001_605059201_4FGL_J2250.0+3825_daily_bin1410.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/498403/ltcube_604800001_605059201_4FGL_J2250.0+3825_daily_bin1410.fits
.....................!
real 190.76
user 184.96
sys 5.37

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/498403/ft1_filtered_4FGL_J2250.0+3825_daily_bin1410.fits scfile=/scratch/kocevski/498403/ft2_4FGL_J2250.0+3825_daily_bin1410.fits outfile=/scratch/kocevski/498403/cmap_604800001_605059201_4FGL_J2250.0+3825_daily_bin1410.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498403/ft1_filtered_4FGL_J2250.0+3825_daily_bin1410.fits scfile=/scratch/kocevski/498403/ft2_4FGL_J2250.0+3825_daily_bin1410.fits outfile=/scratch/kocevski/498403/cmap_HighResolution_604800001_605059201_4FGL_J2250.0+3825_daily_bin1410.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/498403/ft1_filtered_4FGL_J2250.0+3825_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/498403/ft2_4FGL_J2250.0+3825_daily_bin1410.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/498403/Model_4FGL_J2250.0+3825_daily_bin1410.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/498403/ft1_filtered_4FGL_J2250.0+3825_daily_bin1410.fits.....................!
real 125.71
user 124.12
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/498403/ft1_filtered_4FGL_J2250.0+3825_daily_bin1410.fits', '/scratch/kocevski/498403/ft2_4FGL_J2250.0+3825_daily_bin1410.fits', expMap='/scratch/kocevski/498403/expmap_604800001_605059201_4FGL_J2250.0+3825_daily_bin1410.fits', expCube='/scratch/kocevski/498403/ltcube_604800001_605059201_4FGL_J2250.0+3825_daily_bin1410.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/498403/Model_4FGL_J2250.0+3825_daily_bin1410.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/498403/ft1_filtered_4FGL_J2250.0+3825_daily_bin1410.fits
Spacecraft file(s): /scratch/kocevski/498403/ft2_4FGL_J2250.0+3825_daily_bin1410.fits
Exposure map: /scratch/kocevski/498403/expmap_604800001_605059201_4FGL_J2250.0+3825_daily_bin1410.fits
Exposure cube: /scratch/kocevski/498403/ltcube_604800001_605059201_4FGL_J2250.0+3825_daily_bin1410.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/498403/Model_4FGL_J2250.0+3825_daily_bin1410.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) = 10739.0938912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5856       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.158       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.2351       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9296       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.956       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.488       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.461       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1781       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6798       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3757       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89274       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=   10739.07     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     1846 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5858        1.1477       -.21779E-08    .15942E-04
   2  Prefactor     12.162        15.315        .63641E-06    .14990E-03
   3  Prefactor     .10000E-03    11.968        .92937E-07** at limit **
   4  norm          3.2351        1.2930        .20034E-07   -.36671E-04
   5  Prefactor     .10000E-03    15.836        .48473E-06** at limit **
   6  Prefactor     .10000E-03    1.6780        .16466E-07** at limit **
   7  Prefactor     .10000E-03    4.9492       -.25209E-06** at limit **
   8  norm          2.9296        2.3707        .22576E-08   -.10142E-04
   9  Prefactor     11.956        11.701        .61415E-08    .10575E-04
  10  Prefactor     10.488        6.1768       -.79444E-07   -.23203E-04
  11  Prefactor     11.441        19.439       -.55987E-05   -.66286E-03
  12  norm          2.1784        1.3393        .12225E-07   -.14218E-03
  13  Prefactor     4.6800        9.8991        .61273E-05   -.62823E-03
  14  Prefactor     .10000E-03    9.0691       -.84254E-06** at limit **
  15  norm          .10001E-03    1.6545        .66256E-06** at limit **
  16  norm          .10000E-03    4.0610        .11181E-06** at limit **
  17  Prefactor     .10000E-03    3.7416       -.53325E-07** at limit **
  18  norm          .10000E-03    .62591       -.76831E-07** at limit **
  19  Prefactor     .10000E-03    5.1089        .18793E-07** at limit **
  20  Normalizat    1.3758        .21435       -.72753E-06   -.35255E-04
  21  Prefactor     .89272        .72944E-01   -.22244E-07   -.11050E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.58578
  Prefactor  = 12.1619
  Prefactor  = 0.0001
  norm       = 3.23509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.92963
  Prefactor  = 11.9561
  Prefactor  = 10.4878
  Prefactor  = 11.4409
  norm       = 2.17835
  Prefactor  = 4.67996
  Prefactor  = 0.0001
  norm       = 0.000100013
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.37579
  Prefactor  = 0.892721
 **********
 **   18 **HESSE 
 **********

 FCN=   10739.07     FROM HESSE     STATUS=OK           315 CALLS     2161 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5858        1.1509        .43316E-04   -1.5195    
   2  Prefactor     12.162        15.348        .11488E-03   -1.5010    
   3  Prefactor     .10000E-03    12.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2351        1.2940        .72004E-04   -1.5348    
   5  Prefactor     .10000E-03    15.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.6838        .13105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9296        2.3676        .13918E-03   -1.5366    
   9  Prefactor     11.956        11.704        .11585E-03   -1.5016    
  10  Prefactor     10.488        6.1748        .12372E-03   -1.5060    
  11  Prefactor     11.441        21.085        .11834E-03   -1.5031    
  12  norm          2.1784        1.3357        .90420E-04   -1.5413    
  13  Prefactor     4.6800        10.331        .93014E-03   -1.5275    
  14  Prefactor     .10000E-03    9.1224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    7.3138        .25626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.0722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.7453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .62909        .80088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.1096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3758        .24440        .39350E-03   -.81331    
  21  Prefactor     .89272        .83463E-01    .16367E-03   -.96396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31677e-09
Minuit parameter uncertainties:
  1  1.1509
  2  15.3525
  3  3.08739e-05
  4  1.29398
  5  9.27834e-05
  6  5.32311e-07
  7  2.75264e-05
  8  2.36766
  9  11.7062
  10  6.17518
  11  21.0982
  12  1.33567
  13  10.335
  14  0.000123658
  15  0.000623681
  16  1.00704e-05
  17  6.57658e-06
  18  2.75274e-06
  19  1.54811e-06
  20  0.244606
  21  0.0834749
Done.

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

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  1.196e+01  1.171e+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.927e-01  8.347e-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.376e+00  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.20
Ra Dec: 342.514 38.425
Photon Index (Fixed Index): 1.73 +/- 0.00
Photon Flux (Fixed Index): 1.45e-08 +/- 1.42e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 2.09e-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) = 10738.590247
delta logL = 0.475786006875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10738.5846729
delta logL = 0.481360031687

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.293       1.0000         .10000E-03   10000.    
     2 'Index     '    .99400       1.0000          .0000       10.000    
     3 'Normalizat'    1.3838       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89240       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.

 FCN=   10738.58     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      217 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.301        13.439        .27465E-02   -.24637E-04
   2  Index         .99346        .65391        .22014       -.55184E-05
   3  Normalizat    1.3837        .20854        .88657E-01    .15814E-03
   4  Prefactor     .89242        .72044E-01    .44908E-01    .38408E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3009
  Index      = 0.99346
  Normalizat = 1.38372
  Prefactor  = 0.892415
 **********
 **   18 **HESSE 
 **********

 FCN=   10738.58     FROM HESSE     STATUS=OK            29 CALLS      246 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.301        14.222        .10986E-03   -1.4978    
   2  Index         .99346        .69400        .22057E-02   -.92948    
   3  Normalizat    1.3837        .23699        .39258E-03   -.81101    
   4  Prefactor     .89242        .82082E-01    .16370E-03   -.96407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89785e-11
Minuit parameter uncertainties:
  1  14.226
  2  0.700378
  3  0.237177
  4  0.0820938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498403': 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) = 10738.5846722
delta logL = 0.481360768195

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  1.330e+01  1.423e+01  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  9.935e-01  7.004e-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.924e-01  8.209e-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.384e+00  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.16
Ra Dec: 342.514 38.425
Photon Index (Free Index): 0.99 +/- 0.70
Photon Flux (Free Index): 4.63e-09 +/- 5.62e-09
Energy Flux (Free Index): 6.81e-05 +/- 9.75e-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/498403/cmap_HighResolution_604800001_605059201_4FGL_J2250.0+3825_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.45e-08', energy_flux2='6.81e-05', photon_flux_error='1.42e-08', dlogl='4.81e-01', energy_flux='2.14e-05', photon_flux2='4.63e-09', job_status='DONE', time_completed='2021-09-28 22:14:11.998845', photon_index_error2='0.70', photon_index2='0.99', ts='9.20', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='9.75e-05', EG='1.38', time_epoch_completed='1632892452.0', return_code='0', job_id='498403', GAL2='0.89', EG2='1.38', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='5.62e-09', ts2='10.16', photon_index='1.73' WHERE bin_id='1410' AND source_name='4FGL J2250.0+3825' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:14:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 498403: <4FGL_J2250.0+3825_daily_bin1410> in cluster <slac> Done

Job <4FGL_J2250.0+3825_daily_bin1410> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 22:00:32 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:00:34 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:00:34 2021
Terminated at Tue Sep 28 22:14:12 2021
Results reported at Tue Sep 28 22:14:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0+3825_daily_bin1410 342.514 38.4247 604800001 605059201 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 :                                   738.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            820 sec.

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

