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


Performing analysis on: 4FGL_J2250.0+3825_daily_bin190
RA = 342.514, Dec = 38.4247
tmin = 288576001, tmax = 288835201
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='492425', job_status='RUN', time_executed='2021-09-28 21:40:32.210811', time_epoch_executed='1632890432.21' WHERE source_name='4FGL J2250.0+3825' and cadence='daily' and bin_id='190'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/492425

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/492425/ft1_4FGL_J2250.0+3825_daily_bin190.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/492425/ft2_4FGL_J2250.0+3825_daily_bin190.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/492425/ft1_4FGL_J2250.0+3825_daily_bin190.fits outfile=/scratch/kocevski/492425/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin190.fits ra=342.514 dec=38.4247 rad=12.0 tmin=288576001.0 tmax=288835201.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 3.66
user 3.43
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/492425/ft1_filtered_4FGL_J2250.0+3825_daily_bin190.fits evtable="EVENTS" scfile=/scratch/kocevski/492425/ft2_4FGL_J2250.0+3825_daily_bin190.fits sctable="SC_DATA" expcube=/scratch/kocevski/492425/ltcube_288576001_288835201_4FGL_J2250.0+3825_daily_bin190.fits outfile=/scratch/kocevski/492425/expmap_288576001_288835201_4FGL_J2250.0+3825_daily_bin190.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/492425/ltcube_288576001_288835201_4FGL_J2250.0+3825_daily_bin190.fits
.....................!
real 190.70
user 185.10
sys 5.16

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/492425/ft1_filtered_4FGL_J2250.0+3825_daily_bin190.fits scfile=/scratch/kocevski/492425/ft2_4FGL_J2250.0+3825_daily_bin190.fits outfile=/scratch/kocevski/492425/cmap_288576001_288835201_4FGL_J2250.0+3825_daily_bin190.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/492425/ft1_filtered_4FGL_J2250.0+3825_daily_bin190.fits scfile=/scratch/kocevski/492425/ft2_4FGL_J2250.0+3825_daily_bin190.fits outfile=/scratch/kocevski/492425/cmap_HighResolution_288576001_288835201_4FGL_J2250.0+3825_daily_bin190.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.61
user 0.38
sys 0.23

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2461       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13814E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3116       1.0000         .10000E-03   10000.    
     4 'norm      '    .35923       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11771E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10485E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.2450       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1747       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4694       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10818E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.8391       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9427       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    21.471       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11530E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1393       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .86237       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=   10081.26     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     1861 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2468        .87978        .94465E-08    .47028E-04
   2  Prefactor     .10000E-03    15.123       -.24929E-07** at limit **
   3  Prefactor     8.2969        9.1148       -.31197E-07    .14275E-04
   4  norm          .35934        .59716        .23743E-06    .13867E-02
   5  Prefactor     .10000E-03    241.82       -.62278E-05** at limit **
   6  Prefactor     .10000E-03    3.4750       -.17978E-06** at limit **
   7  Prefactor     .10000E-03    5.0433        .75201E-10** at limit **
   8  norm          4.2441        3.1952        .74530E-06   -.39529E-03
   9  Prefactor     8.1681        11.499       -.15410E-06    .10947E-04
  10  Prefactor     3.4709        4.7050       -.37006E-07   -.35291E-04
  11  Prefactor     .10000E-03    11.122       -.19362E-08** at limit **
  12  norm          9.8399        2.0910        .25068E-07   -.67333E-04
  13  Prefactor     3.9533        10.671        .57770E-06   -.19025E-04
  14  Prefactor     .10000E-03    8.1520        .50928E-08** at limit **
  15  norm          .10000E-03    2.6746        .73094E-07** at limit **
  16  norm          21.486        13.659        .57159E-07   -.29268E-05
  17  Prefactor     .10000E-03    30.414        .52702E-06** at limit **
  18  norm          .10000E-03    .91700        .36083E-08** at limit **
  19  Prefactor     .10000E-03    9.2044        .45782E-07** at limit **
  20  Normalizat    1.1390        .20812       -.65080E-06    .12640E-04
  21  Prefactor     .86230        .71284E-01   -.23728E-06    .99068E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.24675
  Prefactor  = 0.0001
  Prefactor  = 8.29693
  norm       = 0.359337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.2441
  Prefactor  = 8.16815
  Prefactor  = 3.47087
  Prefactor  = 0.0001
  norm       = 9.83992
  Prefactor  = 3.95334
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 21.4858
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13903
  Prefactor  = 0.862298
 **********
 **   18 **HESSE 
 **********

 FCN=   10081.26     FROM HESSE     STATUS=OK           317 CALLS     2178 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2468        .88086        .46144E-04   -1.5348    
   2  Prefactor     .10000E-03    15.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.2969        9.1107        .13906E-03   -1.5132    
   4  norm          .35934        .49601        .10793E-02   -1.5588    
   5  Prefactor     .10000E-03    243.05        .20651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.2441        3.0820        .72124E-03   -1.5296    
   9  Prefactor     8.1681        11.489        .14022E-03   -1.5136    
  10  Prefactor     3.4709        4.6881        .21711E-03   -1.5335    
  11  Prefactor     .10000E-03    11.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.8399        2.0965        .63984E-04   -1.5080    
  13  Prefactor     3.9533        10.677        .20316E-03   -1.5310    
  14  Prefactor     .10000E-03    8.1584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.7250        .16033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          21.486        13.654        .86442E-04   -1.4781    
  17  Prefactor     .10000E-03    31.258        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .92856        .93854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.2160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1390        .23819        .39228E-03   -.88508    
  21  Prefactor     .86230        .81616E-01    .15404E-03   -.97471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02417e-10
Minuit parameter uncertainties:
  1  0.880867
  2  2.50146e-06
  3  9.11224
  4  0.496013
  5  4.76827e-05
  6  1.03648e-05
  7  2.48608e-07
  8  3.08214
  9  11.4922
  10  4.68862
  11  2.22414e-06
  12  2.09651
  13  10.6817
  14  2.32696e-06
  15  6.2355e-07
  16  13.6562
  17  2.63066e-05
  18  3.19639e-07
  19  7.74449e-06
  20  0.238412
  21  0.0816274
Done.

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

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  8.168e+00  1.149e+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.623e-01  8.163e-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.139e+00  2.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.98
Ra Dec: 342.514 38.425
Photon Flux Upper Limit: 5.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/492425/likelihoodResults_288576001_288835201_4FGL_J2250.0+3825_daily_bin190.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) = 10081.1756202
delta logL = 0.0892174077089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10081.1751561
delta logL = 0.0896815154829

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6706       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1890       1.0000          .0000       10.000    
     3 'Normalizat'    1.1284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86343       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=   10081.18     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      318 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6709        31.995        .18621E-03   -.21490E-04
   2  Index         2.1890        2.3658        .11680E-01    .45570E-04
   3  Normalizat    1.1284        .24284        .39385E-03    .22399E-03
   4  Prefactor     .86341        .80843E-01    .15394E-03    .18617E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.67095
  Index      = 2.18897
  Normalizat = 1.12844
  Prefactor  = 0.863409
 **********
 **   18 **HESSE 
 **********

 FCN=   10081.18     FROM HESSE     STATUS=OK            25 CALLS      343 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6709        10.958        .74486E-05   -1.5276    
   2  Index         2.1890        1.1149        .46720E-03   -.59705    
   3  Normalizat    1.1284        .23147        .15754E-04   -.88844    
   4  Prefactor     .86341        .79938E-01    .30787E-04   -.97432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52223e-10
Minuit parameter uncertainties:
  1  10.9624
  2  1.12888
  3  0.23168
  4  0.0799486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/492425': 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) = 10081.1751561
delta logL = 0.0896815774795

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  4.671e+00  1.096e+01  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  2.189e+00  1.129e+00  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.634e-01  7.995e-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.128e+00  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 342.514 38.425
Photon Index (Free Index): 2.19 +/- 1.13
Photon Flux (Free Index): 2.11e-08 +/- 4.11e-08
Energy Flux (Free Index): 9.66e-06 +/- 1.36e-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/492425/cmap_HighResolution_288576001_288835201_4FGL_J2250.0+3825_daily_bin190.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-03', comment='SUCCESS', energy_flux2='9.66e-06', dlogl='8.97e-02', photon_flux2='2.11e-08', job_status='DONE', time_completed='2021-09-28 21:53:58.406436', photon_index_error2='1.13', photon_index2='2.19', ts='0.98', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='5.58e-08', energy_flux_error2='1.36e-05', EG='1.14', time_epoch_completed='1632891238.41', return_code='0', job_id='492425', GAL2='0.86', EG2='1.13', return_code2='0', photon_flux_error2='4.11e-08', ts2='1.16', photon_index='1.73' WHERE bin_id='190' AND source_name='4FGL J2250.0+3825' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:53:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 492425: <4FGL_J2250.0+3825_daily_bin190> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0+3825_daily_bin190 342.514 38.4247 288576001 288835201 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 :                                   804.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             350.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            817 sec.

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

