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


Performing analysis on: 4FGL_J2250.0+3825_daily_bin1223
RA = 342.514, Dec = 38.4247
tmin = 556329601, tmax = 556588801
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='497009', job_status='RUN', time_executed='2021-09-28 21:59:16.328753', time_epoch_executed='1632891556.33' WHERE source_name='4FGL J2250.0+3825' and cadence='daily' and bin_id='1223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497009

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497009/ft1_4FGL_J2250.0+3825_daily_bin1223.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497009/ft2_4FGL_J2250.0+3825_daily_bin1223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497009/ft1_4FGL_J2250.0+3825_daily_bin1223.fits outfile=/scratch/kocevski/497009/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin1223.fits ra=342.514 dec=38.4247 rad=12.0 tmin=556329601.0 tmax=556588801.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.77
user 3.55
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/497009/ft2_4FGL_J2250.0+3825_daily_bin1223.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/497009/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin1223.fits evtable="EVENTS" outfile="/scratch/kocevski/497009/ft1_filtered_4FGL_J2250.0+3825_daily_bin1223.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/497009/ft1_filtered_4FGL_J2250.0+3825_daily_bin1223.fits" evtable="EVENTS" scfile=/scratch/kocevski/497009/ft2_4FGL_J2250.0+3825_daily_bin1223.fits sctable="SC_DATA" outfile=/scratch/kocevski/497009/ltcube_556329601_556588801_4FGL_J2250.0+3825_daily_bin1223.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/497009/ft2_4FGL_J2250.0+3825_daily_bin1223.fits
.....................!
real 11.59
user 11.19
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497009/ft1_filtered_4FGL_J2250.0+3825_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/497009/ft2_4FGL_J2250.0+3825_daily_bin1223.fits sctable="SC_DATA" expcube=/scratch/kocevski/497009/ltcube_556329601_556588801_4FGL_J2250.0+3825_daily_bin1223.fits outfile=/scratch/kocevski/497009/expmap_556329601_556588801_4FGL_J2250.0+3825_daily_bin1223.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/497009/ltcube_556329601_556588801_4FGL_J2250.0+3825_daily_bin1223.fits
.....................!
real 192.81
user 187.80
sys 4.67

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/497009/ft1_filtered_4FGL_J2250.0+3825_daily_bin1223.fits scfile=/scratch/kocevski/497009/ft2_4FGL_J2250.0+3825_daily_bin1223.fits outfile=/scratch/kocevski/497009/cmap_556329601_556588801_4FGL_J2250.0+3825_daily_bin1223.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/497009/ft1_filtered_4FGL_J2250.0+3825_daily_bin1223.fits scfile=/scratch/kocevski/497009/ft2_4FGL_J2250.0+3825_daily_bin1223.fits outfile=/scratch/kocevski/497009/cmap_HighResolution_556329601_556588801_4FGL_J2250.0+3825_daily_bin1223.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.53
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/497009/ft1_filtered_4FGL_J2250.0+3825_daily_bin1223.fits', '/scratch/kocevski/497009/ft2_4FGL_J2250.0+3825_daily_bin1223.fits', expMap='/scratch/kocevski/497009/expmap_556329601_556588801_4FGL_J2250.0+3825_daily_bin1223.fits', expCube='/scratch/kocevski/497009/ltcube_556329601_556588801_4FGL_J2250.0+3825_daily_bin1223.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/497009/Model_4FGL_J2250.0+3825_daily_bin1223.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/497009/ft1_filtered_4FGL_J2250.0+3825_daily_bin1223.fits
Spacecraft file(s): /scratch/kocevski/497009/ft2_4FGL_J2250.0+3825_daily_bin1223.fits
Exposure map: /scratch/kocevski/497009/expmap_556329601_556588801_4FGL_J2250.0+3825_daily_bin1223.fits
Exposure cube: /scratch/kocevski/497009/ltcube_556329601_556588801_4FGL_J2250.0+3825_daily_bin1223.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/497009/Model_4FGL_J2250.0+3825_daily_bin1223.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 683.322901804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 679.224956086

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7718       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5246       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6458       1.0000         .10000E-03   10000.    
     4 'norm      '    10.003       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .48233       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19440E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.922       1.0000         .10000E-03   10000.    
     8 'norm      '    .21062E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.336       1.0000         .10000E-03   10000.    
    10 'Prefactor '    281.83       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2408       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2898       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28276       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .34601E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9948       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .39215E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10449E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    157.56       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .53033E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78457       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   679.2194     FROM MIGRAD    STATUS=CONVERGED    204 CALLS      495 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7718        1.0056         .0000         .0000    
   2  Prefactor     2.5246        1.0211         .0000         .0000    
   3  Prefactor     3.6458        1.0097         .0000         .0000    
   4  norm          9.9904        5.4062        .90159E-07   -.30054E-04
   5  Prefactor     .10000E-03    490.64        .32966E-06** at limit **
   6  Prefactor     .10000E-03    97.071       -.19935E-06** at limit **
   7  Prefactor     45.144        67.882        .76753E-07    .32524E-03
   8  norm          .10000E-03    39.109        .11213E-07** at limit **
   9  Prefactor     .70302E-03    6208.3       -.25780E-04** at limit **
  10  Prefactor     288.00        105.66        .15864E-05   -.74382E-02
  11  Prefactor     6.3700        21.836       -.73436E-06   -.23335E-02
  12  norm          2.3073        4.9908        .28786E-06    .15123E-04
  13  Prefactor     .10000E-03    159.61        .99562E-07** at limit **
  14  Prefactor     .10000E-03    19.439        .37858E-08** at limit **
  15  norm          .10000E-03    4.6187        .74018E-08** at limit **
  16  norm          .10125E-03    781.20       -.58060E-05** at limit **
  17  Prefactor     .10000E-03    19.787        .41201E-07** at limit **
  18  norm          .10000E-03    23.138        .38161E-07** at limit **
  19  Prefactor     157.15        117.20        .44534E-06    .26072E-02
  20  Normalizat    .49357E-01    6.6397       -.74930E-04   -.18544E-05
  21  Prefactor     .78853        .37291        .36540E-05   -.17445E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.7718
  Prefactor  = 2.52462
  Prefactor  = 3.64577
  norm       = 9.99041
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 45.1444
  norm       = 0.0001
  Prefactor  = 0.000703025
  Prefactor  = 287.997
  Prefactor  = 6.37
  norm       = 2.30726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000101254
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 157.151
  Normalizat = 0.0493566
  Prefactor  = 0.788531
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   679.2194     FROM HESSE     STATUS=FAILED        11 CALLS      506 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          533.83        529.00         .0000       -1.5271    
   2  Prefactor     2.5246        1.0211         .0000       -1.5390    
   3  Prefactor     3.6458        1.0097         .0000       -1.5326    
   4  norm          9.9904        1.0006        .90159E-07   -1.5076    
   5  Prefactor     .10000E-03    .31351        .32966E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .25639       -.19935E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     45.144        1.0025        .76753E-07   -1.4363    
   8  norm          .10000E-03    .20829        .11213E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .70302E-03    .24269E-01   -.25780E-04   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     288.00        1.0106        .15864E-05   -1.2297    
  11  Prefactor     6.3700        .94024       -.73436E-06   -1.5203    
  12  norm          2.3073        1.0300        .28786E-06   -1.5404    
  13  Prefactor     .10000E-03    .26776        .99562E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .28431        .37858E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .20571        .74018E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10125E-03    .85973E-01   -.58060E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .28283        .41201E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .20571        .38161E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     157.15        .99872        .44534E-06   -1.3194    
  20  Normalizat    .49357E-01    .26427       -.74930E-04   -1.4452    
  21  Prefactor     .78853        1.1361        .36540E-05   -1.0015    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.30242e-11
Minuit parameter uncertainties:
  1  1.0056
  2  1.0211
  3  1.00973
  4  1.00061
  5  2.55504e-05
  6  4.80942e-08
  7  1.00252
  8  7.45452e-07
  9  0.00765102
  10  1.01057
  11  0.940239
  12  1.02998
  13  3.05397e-06
  14  3.86444e-08
  15  1.28888e-08
  16  0.000656627
  17  9.40454e-08
  18  1.66471e-07
  19  0.998718
  20  0.205293
  21  1.1728
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 679.219396856

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  7.030e-04  7.651e-03  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:  7.885e-01  1.173e+00  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:  4.936e-02  2.053e-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: 1.09e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/497009/likelihoodResults_556329601_556588801_4FGL_J2250.0+3825_daily_bin1223.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) = 679.219396856
delta logL = 1.81898940355e-12

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 679.219396856
delta logL = 3.75166564481e-12

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70302E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7325       1.0000          .0000       10.000    
     3 'Normalizat'    .49357E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78853       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=   679.2194     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      238 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10264E-03    8596.4        .20977E-01** at limit **
   2  Index         1.7303        7.4182        .50000       -.27705E-05
   3  Normalizat    .49357E-01    .40474E-01    .12067E-01    .37674E-05
   4  Prefactor     .78853        .21593E-01    .16526E-03    .17491E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102641
  Index      = 1.73025
  Normalizat = 0.0493567
  Prefactor  = 0.788532
 **********
 **   18 **HESSE 
 **********

 FCN=   679.2194     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      269 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10264E-03    7449.5        .83909E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7303        5.1571        .50000       -.71279    
   3  Normalizat    .49357E-01    .97083E-01    .48267E-03   -1.4452    
   4  Prefactor     .78853        .51930E-01    .33052E-04   -1.0015    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.14406e-08
Minuit parameter uncertainties:
  1  0.769048
  2  24.0942
  3  0.0974769
  4  0.0519334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497009': 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): 102
logL (Free Index) = 679.21939677
delta logL = 8.58900648382e-08

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  1.026e-04  7.690e-01  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  1.730e+00  2.409e+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:  7.885e-01  5.193e-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:  4.936e-02  9.748e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/497009/cmap_HighResolution_556329601_556588801_4FGL_J2250.0+3825_daily_bin1223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.01e-02', job_status='DONE', photon_flux_upper_limit='1.09e-06', time_completed='2021-09-28 22:04:47.874451', job_id='497009', GAL2='0.79', fit_tolerance='1e-08', EG2='0.05', EG='0.05', time_epoch_completed='1632891887.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.79', dlogl='8.59e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.73' WHERE bin_id='1223' AND source_name='4FGL J2250.0+3825' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:04:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 497009: <4FGL_J2250.0+3825_daily_bin1223> in cluster <slac> Done

Job <4FGL_J2250.0+3825_daily_bin1223> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 21:55:19 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:55:20 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:55:20 2021
Terminated at Tue Sep 28 22:04:50 2021
Results reported at Tue Sep 28 22:04:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0+3825_daily_bin1223 342.514 38.4247 556329601 556588801 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 :                                   329.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   568 sec.
    Turnaround time :                            571 sec.

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

