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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin950
RA = 171.491, Dec = 20.0912
tmin = 485568001, tmax = 485827201
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='783173', job_status='RUN', time_executed='2021-09-03 20:34:46.630740', time_epoch_executed='1630726486.63' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='950'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/783173

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/783173/ft1_4FGL_J1125.9+2005_daily_bin950.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/783173/ft2_4FGL_J1125.9+2005_daily_bin950.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/783173/ft1_4FGL_J1125.9+2005_daily_bin950.fits outfile=/scratch/kocevski/783173/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin950.fits ra=171.491 dec=20.0912 rad=12.0 tmin=485568001.0 tmax=485827201.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.98
user 3.75
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/783173/ft2_4FGL_J1125.9+2005_daily_bin950.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/783173/ft2_4FGL_J1125.9+2005_daily_bin950.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/783173/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin950.fits evtable="EVENTS" outfile="/scratch/kocevski/783173/ft1_filtered_4FGL_J1125.9+2005_daily_bin950.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/783173/ft1_filtered_4FGL_J1125.9+2005_daily_bin950.fits" evtable="EVENTS" scfile=/scratch/kocevski/783173/ft2_4FGL_J1125.9+2005_daily_bin950.fits sctable="SC_DATA" outfile=/scratch/kocevski/783173/ltcube_485568001_485827201_4FGL_J1125.9+2005_daily_bin950.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/783173/ft2_4FGL_J1125.9+2005_daily_bin950.fits
.....................!
real 18.40
user 16.78
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/783173/ft1_filtered_4FGL_J1125.9+2005_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/783173/ft2_4FGL_J1125.9+2005_daily_bin950.fits sctable="SC_DATA" expcube=/scratch/kocevski/783173/ltcube_485568001_485827201_4FGL_J1125.9+2005_daily_bin950.fits outfile=/scratch/kocevski/783173/expmap_485568001_485827201_4FGL_J1125.9+2005_daily_bin950.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/783173/ltcube_485568001_485827201_4FGL_J1125.9+2005_daily_bin950.fits
.....................!
real 192.33
user 187.40
sys 4.31

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
Added 192 point sources and 0 extended sources

Setting source of interest to:
4FGL J1125.9+2005 @ 171.491 20.0912

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/783173/ft1_filtered_4FGL_J1125.9+2005_daily_bin950.fits scfile=/scratch/kocevski/783173/ft2_4FGL_J1125.9+2005_daily_bin950.fits outfile=/scratch/kocevski/783173/cmap_485568001_485827201_4FGL_J1125.9+2005_daily_bin950.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=171.491 yref=20.0912 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/783173/ft1_filtered_4FGL_J1125.9+2005_daily_bin950.fits scfile=/scratch/kocevski/783173/ft2_4FGL_J1125.9+2005_daily_bin950.fits outfile=/scratch/kocevski/783173/cmap_HighResolution_485568001_485827201_4FGL_J1125.9+2005_daily_bin950.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=171.491 yref=20.0912 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/783173/ft1_filtered_4FGL_J1125.9+2005_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/783173/ft2_4FGL_J1125.9+2005_daily_bin950.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/783173/Model_4FGL_J1125.9+2005_daily_bin950.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/783173/ft1_filtered_4FGL_J1125.9+2005_daily_bin950.fits.....................!
real 55.42
user 53.99
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/783173/ft1_filtered_4FGL_J1125.9+2005_daily_bin950.fits', '/scratch/kocevski/783173/ft2_4FGL_J1125.9+2005_daily_bin950.fits', expMap='/scratch/kocevski/783173/expmap_485568001_485827201_4FGL_J1125.9+2005_daily_bin950.fits', expCube='/scratch/kocevski/783173/ltcube_485568001_485827201_4FGL_J1125.9+2005_daily_bin950.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/783173/Model_4FGL_J1125.9+2005_daily_bin950.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1125.9+2005'

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  2.572e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/783173/ft1_filtered_4FGL_J1125.9+2005_daily_bin950.fits
Spacecraft file(s): /scratch/kocevski/783173/ft2_4FGL_J1125.9+2005_daily_bin950.fits
Exposure map: /scratch/kocevski/783173/expmap_485568001_485827201_4FGL_J1125.9+2005_daily_bin950.fits
Exposure cube: /scratch/kocevski/783173/ltcube_485568001_485827201_4FGL_J1125.9+2005_daily_bin950.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/783173/Model_4FGL_J1125.9+2005_daily_bin950.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) = 5788.63741884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8626       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1672       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.301       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.123       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.550       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.823       1.0000         .10000E-03   10000.    
     8 'norm      '    .68190       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4775       1.0000         .10000E-03   10000.    
    11 'norm      '    6.9990       1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0758       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.266       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .64229E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.7417       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.6753       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6900       1.0000         .10000E-03   10000.    
    20 'norm      '    3.0607       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.8313       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .69189       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4450       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5788.577     FROM MIGRAD    STATUS=CONVERGED     93 CALLS     2464 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8575        4.1330       -.77749E-05   -.55361E-02
   2  Prefactor     2.1670        2.2290        .51082E-06    .65588E-04
   3  Prefactor     15.300        1.6994       -.22213E-05   -.25531E-02
   4  Prefactor     12.115        4.8949       -.56813E-05   -.22773E-02
   5  Prefactor     .10000E-03    10.394        .16430E-05** at limit **
   6  Prefactor     14.551        3.6646       -.23651E-05   -.23582E-02
   7  Prefactor     22.826        5.5333       -.59493E-05   -.51618E-02
   8  norm          .68144        1.2320       -.39671E-06    .13954E-03
   9  Prefactor     .10000E-03    1.8550        .90031E-07** at limit **
  10  Prefactor     9.4708        4.9495       -.95436E-05   -.76362E-02
  11  norm          7.0101        7.9314       -.21103E-05   -.59406E-02
  12  norm          .10000E-03    4.8421       -.72361E-06** at limit **
  13  Prefactor     2.0737        2.8156       -.11292E-04   -.11726E-02
  14  Prefactor     .10000E-03    8.5815       -.27829E-05** at limit **
  15  Prefactor     13.203        20.576       -.29053E-04    .85397E-02
  16  Prefactor     .10683E-03    124.32        .86995E-05** at limit **
  17  Prefactor     8.7613        2.8413       -.58267E-06    .96341E-03
  18  Prefactor     6.6684        8.7892        .13585E-04    .44043E-02
  19  Prefactor     1.6896        2.0299       -.82785E-06    .66334E-05
  20  norm          3.0609        2.1940       -.42489E-06   -.19998E-04
  21  Prefactor     .10000E-03    7.1078        .51386E-06** at limit **
  22  Prefactor     2.8329        5.3660        .18090E-05    .32470E-03
  23  Prefactor     .10000E-03    1.4191       -.89373E-06** at limit **
  24  Normalizat    .69182        .23492        .10867E-04   -.64900E-04
  25  Prefactor     1.4453        .24239       -.12705E-05   -.67288E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.85746
  Prefactor  = 2.16699
  Prefactor  = 15.2998
  Prefactor  = 12.1148
  Prefactor  = 0.000100002
  Prefactor  = 14.551
  Prefactor  = 22.8265
  norm       = 0.681438
  Prefactor  = 0.0001
  Prefactor  = 9.47082
  norm       = 7.01009
  norm       = 0.0001
  Prefactor  = 2.07367
  Prefactor  = 0.000100001
  Prefactor  = 13.2027
  Prefactor  = 0.000106832
  Prefactor  = 8.76131
  Prefactor  = 6.6684
  Prefactor  = 1.68961
  norm       = 3.06087
  Prefactor  = 0.0001
  Prefactor  = 2.83293
  Prefactor  = 0.0001
  Normalizat = 0.691817
  Prefactor  = 1.44527
 **********
 **   18 **HESSE 
 **********

 FCN=   5788.577     FROM HESSE     STATUS=OK           493 CALLS     2957 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8575        8.8776        .31899E-02   -1.5080    
   2  Prefactor     2.1670        2.2629        .69938E-02   -1.5414    
   3  Prefactor     15.300        8.3541        .25598E-02   -1.4925    
   4  Prefactor     12.115        10.382        .28763E-02   -1.5012    
   5  Prefactor     .10000E-03    10.342        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.551        13.924        .26251E-02   -1.4945    
   7  Prefactor     22.826        15.681        .20961E-02   -1.4752    
   8  norm          .68144        1.3469        .25417E-01   -1.5543    
   9  Prefactor     .10000E-03    1.8355        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.4708        8.7423        .32544E-02   -1.5092    
  11  norm          7.0101        14.057        .37910E-02   -1.5178    
  12  norm          .10000E-03    4.8260        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0737        13.805        .71668E-02   -1.5420    
  14  Prefactor     .10000E-03    8.5726        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.203        45.241        .27493E-02   -1.4981    
  16  Prefactor     .10683E-03    10.936        .94180E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.7613        24.918        .33893E-02   -1.5116    
  18  Prefactor     6.6684        16.273        .38828E-02   -1.5191    
  19  Prefactor     1.6896        2.1501        .80955E-02   -1.5448    
  20  norm          3.0609        2.2821        .57970E-02   -1.5358    
  21  Prefactor     .10000E-03    7.0984        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.8329        5.5689        .60421E-02   -1.5371    
  23  Prefactor     .10000E-03    1.4060        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .69182        .21756        .72040E-01   -1.0422    
  25  Prefactor     1.4453        .20764        .55351E-01   -.79084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53089e-06
Minuit parameter uncertainties:
  1  8.87882
  2  2.26302
  3  8.35472
  4  10.3835
  5  0.000316001
  6  13.9269
  7  15.684
  8  1.34699
  9  1.18526e-05
  10  8.74351
  11  14.0639
  12  7.52759e-07
  13  10.7042
  14  0.000142306
  15  45.3589
  16  0.0172905
  17  24.9472
  18  16.2841
  19  2.15016
  20  2.28214
  21  3.26071e-05
  22  5.56991
  23  6.76557e-06
  24  0.217833
  25  0.20776
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  2.074e+00  1.070e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.445e+00  2.078e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  6.918e-01  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 171.491 20.091
Photon Flux Upper Limit: 8.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/783173/likelihoodResults_485568001_485827201_4FGL_J1125.9+2005_daily_bin950.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) = 5788.37642823
delta logL = 0.200938358273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5788.32824785
delta logL = 0.249118739714

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74488       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6797       1.0000          .0000       10.000    
     3 'Normalizat'    .64657       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4743       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5788.328     FROM MIGRAD    STATUS=FAILED       100 CALLS      283 TOTAL
                     EDM=   .98E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74052        71.787        .24466E-03   -.18773E-04
   2  Index         3.6819        6.3650        .71170E-02    .51107E-03
   3  Normalizat    .64649        .19680        .32921E-03   -.46309E-04
   4  Prefactor     1.4745        .20380        .24270E-03   -.75491E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5788.328     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      374 TOTAL
                     EDM=   .69E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74052        71.787        .10404E-03   -.18773E-04
   2  Index         3.6819        6.3650        .92418E-03    .51107E-03
   3  Normalizat    .64649        .19680        .20744E-03   -.46309E-04
   4  Prefactor     1.4745        .20380        .12004E-03   -.75491E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5788.328     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      408 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74052        6.7208        .97863E-05   -.31366E-04
   2  Index         3.6819        2.6912        .14234E-02   -.11981E-05
   3  Normalizat    .64649        .23857        .13168E-04   -.46447E-04
   4  Prefactor     1.4745        .24847        .48540E-04   -.75463E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.740519
  Index      = 3.6819
  Normalizat = 0.646485
  Prefactor  = 1.4745
 **********
 **   18 **HESSE 
 **********

 FCN=   5788.328     FROM HESSE     STATUS=OK            23 CALLS      431 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74052        3.9056        .39145E-06   -1.5536    
   2  Index         3.6819        2.1050        .56936E-04   -.26677    
   3  Normalizat    .64649        .23777        .26337E-05   -1.0605    
   4  Prefactor     1.4745        .24764        .97081E-05   -.78257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22709e-12
Minuit parameter uncertainties:
  1  3.40137
  2  2.17835
  3  0.238147
  4  0.247837
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/783173': 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) = 5788.32824618
delta logL = 0.249120412769

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  7.405e-01  3.401e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  3.682e+00  2.178e+00  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.474e+00  2.478e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  6.465e-01  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 171.491 20.091

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/783173/cmap_HighResolution_485568001_485827201_4FGL_J1125.9+2005_daily_bin950.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.72e-03', job_status='DONE', photon_flux_upper_limit='8.79e-08', time_completed='2021-09-03 20:46:36.156177', job_id='783173', GAL2='1.47', fit_tolerance='1e-08', EG2='0.65', EG='0.69', time_epoch_completed='1630727196.16', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.45', dlogl='2.49e-01', ts2='0.58', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='950' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:46:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 783173: <4FGL_J1125.9+2005_daily_bin950> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin950> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 20:31:45 2021
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:32:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 20:32:10 2021
Terminated at Fri Sep  3 20:46:36 2021
Results reported at Fri Sep  3 20:46:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin950 171.491 20.0912 485568001 485827201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1125.9+2005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   701.59 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            891 sec.

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

