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


Performing analysis on: 4FGL_J2250.0+3825_daily_bin617
RA = 342.514, Dec = 38.4247
tmin = 399254401, tmax = 399513601
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='494095', job_status='RUN', time_executed='2021-09-28 21:45:59.068717', time_epoch_executed='1632890759.07' WHERE source_name='4FGL J2250.0+3825' and cadence='daily' and bin_id='617'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494095

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494095/ft1_4FGL_J2250.0+3825_daily_bin617.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494095/ft2_4FGL_J2250.0+3825_daily_bin617.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494095/ft1_4FGL_J2250.0+3825_daily_bin617.fits outfile=/scratch/kocevski/494095/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin617.fits ra=342.514 dec=38.4247 rad=12.0 tmin=399254401.0 tmax=399513601.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.40
user 5.09
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494095/ft1_filtered_4FGL_J2250.0+3825_daily_bin617.fits" evtable="EVENTS" scfile=/scratch/kocevski/494095/ft2_4FGL_J2250.0+3825_daily_bin617.fits sctable="SC_DATA" outfile=/scratch/kocevski/494095/ltcube_399254401_399513601_4FGL_J2250.0+3825_daily_bin617.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/494095/ft2_4FGL_J2250.0+3825_daily_bin617.fits
.....................!
real 11.94
user 11.62
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494095/ft1_filtered_4FGL_J2250.0+3825_daily_bin617.fits evtable="EVENTS" scfile=/scratch/kocevski/494095/ft2_4FGL_J2250.0+3825_daily_bin617.fits sctable="SC_DATA" expcube=/scratch/kocevski/494095/ltcube_399254401_399513601_4FGL_J2250.0+3825_daily_bin617.fits outfile=/scratch/kocevski/494095/expmap_399254401_399513601_4FGL_J2250.0+3825_daily_bin617.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/494095/ltcube_399254401_399513601_4FGL_J2250.0+3825_daily_bin617.fits
.....................!
real 190.79
user 185.41
sys 5.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/494095/ft1_filtered_4FGL_J2250.0+3825_daily_bin617.fits scfile=/scratch/kocevski/494095/ft2_4FGL_J2250.0+3825_daily_bin617.fits outfile=/scratch/kocevski/494095/cmap_399254401_399513601_4FGL_J2250.0+3825_daily_bin617.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494095/ft1_filtered_4FGL_J2250.0+3825_daily_bin617.fits scfile=/scratch/kocevski/494095/ft2_4FGL_J2250.0+3825_daily_bin617.fits outfile=/scratch/kocevski/494095/cmap_HighResolution_399254401_399513601_4FGL_J2250.0+3825_daily_bin617.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.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2352       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4066       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4511       1.0000         .10000E-03   10000.    
     5 'Prefactor '    128.03       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1950       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.0544       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .73618       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    32.089       1.0000         .10000E-03   10000.    
    16 'norm      '    .14701E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.102       1.0000         .10000E-03   10000.    
    18 'norm      '    .47978E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .92981       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91627       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=   8774.975     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2525 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2353        1.1625       -.93642E-07   -.27418E-03
   2  Prefactor     .10000E-03    12.012        .18567E-05** at limit **
   3  Prefactor     9.4010        17.576        .28611E-05    .18885E-03
   4  norm          1.4513        .89565       -.10084E-07   -.63651E-04
   5  Prefactor     128.02        94.919       -.37434E-05   -.13189E-03
   6  Prefactor     3.1943        3.3990        .10933E-05   -.17249E-02
   7  Prefactor     .10000E-03    5.3325       -.76181E-08** at limit **
   8  norm          .10000E-03    1.5027       -.10736E-06** at limit **
   9  Prefactor     .10000E-03    6.0032       -.15216E-07** at limit **
  10  Prefactor     .10000E-03    3.1433       -.73544E-07** at limit **
  11  Prefactor     .10000E-03    8.2605        .28714E-06** at limit **
  12  norm          4.0544        1.9283        .45594E-07   -.40430E-04
  13  Prefactor     .70270        8.8146       -.34564E-06   -.36623E-04
  14  Prefactor     .10000E-03    9.1462       -.63581E-06** at limit **
  15  norm          32.088        11.533       -.20039E-06   -.41103E-03
  16  norm          .10001E-03    13.281       -.20588E-06** at limit **
  17  Prefactor     11.086        30.044       -.23853E-05   -.12869E-03
  18  norm          .10002E-03    1.7069        .39662E-06** at limit **
  19  Prefactor     .10000E-03    12.118       -.18369E-05** at limit **
  20  Normalizat    .92976        .24505        .90508E-06   -.47980E-04
  21  Prefactor     .91628        .80452E-01   -.33888E-06    .19089E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.23532
  Prefactor  = 0.0001
  Prefactor  = 9.401
  norm       = 1.45129
  Prefactor  = 128.02
  Prefactor  = 3.19435
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.05435
  Prefactor  = 0.702704
  Prefactor  = 0.0001
  norm       = 32.0882
  norm       = 0.000100006
  Prefactor  = 11.0861
  norm       = 0.000100019
  Prefactor  = 0.000100001
  Normalizat = 0.929759
  Prefactor  = 0.916277
 **********
 **   18 **HESSE 
 **********

 FCN=   8774.975     FROM HESSE     STATUS=OK           327 CALLS     2852 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2353        1.1693        .47736E-04   -1.5296    
   2  Prefactor     .10000E-03    12.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.4010        17.795        .13067E-03   -1.5095    
   4  norm          1.4513        .89713        .66871E-04   -1.5467    
   5  Prefactor     128.02        96.400        .17790E-03   -1.3440    
   6  Prefactor     3.1943        4.5090        .11334E-02   -1.5350    
   7  Prefactor     .10000E-03    5.3347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.5135        .11220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1543        .16218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.2667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.0544        1.9261        .85056E-04   -1.5305    
  13  Prefactor     .70270        66.264        .50480E-02   -1.5540    
  14  Prefactor     .10000E-03    9.1609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          32.088        11.497        .70734E-04   -1.4574    
  16  norm          .10001E-03    15.279        .10390       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.086        30.219        .12024E-03   -1.5042    
  18  norm          .10002E-03    14.088        .22916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .92976        .27636        .44651E-03   -.95422    
  21  Prefactor     .91628        .91556E-01    .15487E-03   -.95575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18333e-08
Minuit parameter uncertainties:
  1  1.16929
  2  0.000119979
  3  17.8047
  4  0.897142
  5  96.5186
  6  4.50951
  7  8.93829e-07
  8  2.55414e-06
  9  7.47322e-07
  10  2.3076e-06
  11  2.24298e-05
  12  1.92614
  13  13.6622
  14  4.40912e-05
  15  11.4978
  16  0.00060773
  17  30.2609
  18  0.00103857
  19  0.000166143
  20  0.276784
  21  0.0915711
Done.

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

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  1.000e-04  7.473e-07  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:  9.163e-01  9.157e-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:  9.298e-01  2.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/494095/likelihoodResults_399254401_399513601_4FGL_J2250.0+3825_daily_bin617.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): 102
logL (Free Index) = 8774.97539329
delta logL = -0.000792006403572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8774.9746012
delta logL = 9.03492036741e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7082       1.0000          .0000       10.000    
     3 'Normalizat'    .92978       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91628       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8774.975     FROM MIGRAD    STATUS=FAILED        87 CALLS      241 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    790.03        .18142E-02** at limit **
   2  Index         1.6837        7.7874        .50000        .27407E-04
   3  Normalizat    .92976        .86478E-01    .44651E-03   -.75569E-04
   4  Prefactor     .91628        .30085E-01    .15487E-03    .83213E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8774.975     FROM SIMPLEX   STATUS=UNCHANGED    186 CALLS      427 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    790.03        .40316E-03** at limit **
   2  Index         1.6837        7.7874        .46490E-05    .27407E-04
   3  Normalizat    .92976        .86478E-01    .14994E-06   -.75569E-04
   4  Prefactor     .91628        .30085E-01    .18810E-07    .83213E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8774.975     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      461 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.875        .36285E-03** at limit **
   2  Index         1.6835        5.4234        .50000        .27392E-04
   3  Normalizat    .92976        .25108        .17860E-04   -.74347E-04
   4  Prefactor     .91628        .87440E-01    .30975E-04    .86326E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 1.68346
  Normalizat = 0.929758
  Prefactor  = 0.916277
 **********
 **   18 **HESSE 
 **********

 FCN=   8774.975     FROM HESSE     STATUS=OK            29 CALLS      490 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4019        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6835        5.8080        .50000       -.72523    
   3  Normalizat    .92976        .25093        .35721E-05   -.95422    
   4  Prefactor     .91628        .87404E-01    .61949E-05   -.95575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3918e-09
Minuit parameter uncertainties:
  1  0.000347382
  2  3.77896
  3  0.251243
  4  0.0874173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494095': 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) = 8774.97460091
delta logL = 3.80059645977e-07

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  1.000e-04  3.474e-04  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  1.683e+00  3.779e+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:  9.163e-01  8.742e-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:  9.298e-01  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.514 38.425

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/494095/cmap_HighResolution_399254401_399513601_4FGL_J2250.0+3825_daily_bin617.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.00e-03', job_status='DONE', photon_flux_upper_limit='4.10e-08', time_completed='2021-09-28 21:59:30.921696', job_id='494095', GAL2='0.92', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1632891570.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.73' WHERE bin_id='617' AND source_name='4FGL J2250.0+3825' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:59:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 494095: <4FGL_J2250.0+3825_daily_bin617> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0+3825_daily_bin617 342.514 38.4247 399254401 399513601 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 :                                   807.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            831 sec.

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

