/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 204 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_J1125.9+2005_daily_bin1223
RA = 171.491, Dec = 20.0912
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='784711', job_status='RUN', time_executed='2021-09-03 20:43:05.135625', time_epoch_executed='1630726985.14' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784711

Creating custom pfile directory:
/scratch/kocevski/784711/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/784711/ft1_4FGL_J1125.9+2005_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/784711/ft2_4FGL_J1125.9+2005_daily_bin1223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784711/ft1_4FGL_J1125.9+2005_daily_bin1223.fits outfile=/scratch/kocevski/784711/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1223.fits ra=171.491 dec=20.0912 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.86
user 3.51
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/784711/ft1_filtered_4FGL_J1125.9+2005_daily_bin1223.fits" evtable="EVENTS" scfile=/scratch/kocevski/784711/ft2_4FGL_J1125.9+2005_daily_bin1223.fits sctable="SC_DATA" outfile=/scratch/kocevski/784711/ltcube_556329601_556588801_4FGL_J1125.9+2005_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/784711/ft2_4FGL_J1125.9+2005_daily_bin1223.fits
.....................!
real 15.68
user 15.06
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784711/ft1_filtered_4FGL_J1125.9+2005_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/784711/ft2_4FGL_J1125.9+2005_daily_bin1223.fits sctable="SC_DATA" expcube=/scratch/kocevski/784711/ltcube_556329601_556588801_4FGL_J1125.9+2005_daily_bin1223.fits outfile=/scratch/kocevski/784711/expmap_556329601_556588801_4FGL_J1125.9+2005_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/784711/ltcube_556329601_556588801_4FGL_J1125.9+2005_daily_bin1223.fits
.....................!
real 193.60
user 188.72
sys 4.27

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/784711/ft1_filtered_4FGL_J1125.9+2005_daily_bin1223.fits scfile=/scratch/kocevski/784711/ft2_4FGL_J1125.9+2005_daily_bin1223.fits outfile=/scratch/kocevski/784711/cmap_556329601_556588801_4FGL_J1125.9+2005_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=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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784711/ft1_filtered_4FGL_J1125.9+2005_daily_bin1223.fits scfile=/scratch/kocevski/784711/ft2_4FGL_J1125.9+2005_daily_bin1223.fits outfile=/scratch/kocevski/784711/cmap_HighResolution_556329601_556588801_4FGL_J1125.9+2005_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=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.41
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/784711/ft1_filtered_4FGL_J1125.9+2005_daily_bin1223.fits', '/scratch/kocevski/784711/ft2_4FGL_J1125.9+2005_daily_bin1223.fits', expMap='/scratch/kocevski/784711/expmap_556329601_556588801_4FGL_J1125.9+2005_daily_bin1223.fits', expCube='/scratch/kocevski/784711/ltcube_556329601_556588801_4FGL_J1125.9+2005_daily_bin1223.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/784711/Model_4FGL_J1125.9+2005_daily_bin1223.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/784711/ft1_filtered_4FGL_J1125.9+2005_daily_bin1223.fits
Spacecraft file(s): /scratch/kocevski/784711/ft2_4FGL_J1125.9+2005_daily_bin1223.fits
Exposure map: /scratch/kocevski/784711/expmap_556329601_556588801_4FGL_J1125.9+2005_daily_bin1223.fits
Exposure cube: /scratch/kocevski/784711/ltcube_556329601_556588801_4FGL_J1125.9+2005_daily_bin1223.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/784711/Model_4FGL_J1125.9+2005_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) = 153.756713287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    325.90       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12948E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21578E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .84344E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3019       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8474       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10097E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .48267E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5579       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .49644E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .80482E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.5560       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .29391       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4676       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .48884       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1322       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6146       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20271       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3442       1.0000         .10000E-03   10000.    
    20 'norm      '    6.1171       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .58692E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0845       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.0945       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4761       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   152.2245     FROM MIGRAD    STATUS=CONVERGED    150 CALLS      481 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     325.78        278.46        .56319E-03    .17176E-01
   2  Prefactor     .10000E-03    71.520        .90712E-02** at limit **
   3  Prefactor     .10000E-03    24.462        .90712E-02** at limit **
   4  Prefactor     .24839E-03    811.29        .94363E-02** at limit **
   5  Prefactor     .10277E-03    259.30        .96786E-02** at limit **
   6  Prefactor     2.8474        1.0163         .0000         .0000    
   7  Prefactor     .10365E-03    .20582       -.38106E-05** at limit **
   8  norm          .12882        .37985       -.25816E-05   -.59591E-06
   9  Prefactor     1.5579        1.0639         .0000         .0000    
  10  Prefactor     .10063E-03    .27986       -.18880E-05** at limit **
  11  norm          .10000E-03    .27297       -.92425E-07** at limit **
  12  norm          2.5560        1.0205         .0000         .0000    
  13  Prefactor     .10001E-03    .27031       -.33913E-04** at limit **
  14  Prefactor     2.4676        1.0222         .0000         .0000    
  15  Prefactor     .10121E-03    .31500        .59171E-05** at limit **
  16  Prefactor     2.1322        1.0305         .0000         .0000    
  17  Prefactor     3.6146        1.0099         .0000         .0000    
  18  Prefactor     .13979E-03    .24950       -.35045E-04** at limit **
  19  Prefactor     1.3442        1.0949         .0000         .0000    
  20  norm          6.1171        1.0034         .0000         .0000    
  21  Prefactor     .14641E-03    .21680       -.10572E-04** at limit **
  22  Prefactor     1.0845        1.2009         .0000         .0000    
  23  Prefactor     1.0945        1.1925         .0000         .0000    
  24  Normalizat    .10000E-01    .25735       -.41514E-04** at limit **
  25  Prefactor     1.4678        1.0487        .99499E-05   -.27368E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 325.778
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000248392
  Prefactor  = 0.000102773
  Prefactor  = 2.84744
  Prefactor  = 0.000103653
  norm       = 0.128824
  Prefactor  = 1.5579
  Prefactor  = 0.000100628
  norm       = 0.0001
  norm       = 2.55596
  Prefactor  = 0.000100014
  Prefactor  = 2.46756
  Prefactor  = 0.000101212
  Prefactor  = 2.13221
  Prefactor  = 3.61457
  Prefactor  = 0.000139786
  Prefactor  = 1.34422
  norm       = 6.1171
  Prefactor  = 0.000146408
  Prefactor  = 1.0845
  Prefactor  = 1.09451
  Normalizat = 0.01
  Prefactor  = 1.4678
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   152.2245     FROM HESSE     STATUS=FAILED        19 CALLS      500 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     325.78        278.46        .56319E-03   -1.2078    
   2  Prefactor     .10000E-03    71.520        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.462        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .24839E-03    811.29        .94363E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10277E-03    259.30        .96786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     556.40        553.46         .0000       -1.5370    
   7  Prefactor     .10365E-03    .20582       -.38106E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .12882        .37985       -.25816E-05   -1.5636    
   9  Prefactor     1.5579        1.0639         .0000       -1.5458    
  10  Prefactor     .10063E-03    .27986       -.18880E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .27297       -.92425E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.5560        1.0205         .0000       -1.5388    
  13  Prefactor     .10001E-03    .27031       -.33913E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4676        1.0222         .0000       -1.5394    
  15  Prefactor     .10121E-03    .31500        .59171E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.1322        1.0305         .0000       -1.5416    
  17  Prefactor     3.6146        1.0099         .0000       -1.5328    
  18  Prefactor     .13979E-03    .24950       -.35045E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.3442        1.0949         .0000       -1.5476    
  20  norm          6.1171        1.0034         .0000       -1.5213    
  21  Prefactor     .14641E-03    .21680       -.10572E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.0845        1.2009         .0000       -1.5500    
  23  Prefactor     1.0945        1.1925         .0000       -1.5499    
  24  Normalizat    .10000E-01    .25735       -.41514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.4678        1.0487        .99499E-05   -.78446    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.90727e-10
Minuit parameter uncertainties:
  1  279.616
  2  0.000123078
  3  3.88806e-05
  4  0.703688
  5  0.0538686
  6  1.01631
  7  0.00173413
  8  0.379854
  9  1.06396
  10  0.00083843
  11  3.74153e-07
  12  1.02054
  13  0.000125013
  14  1.02216
  15  0.00123585
  16  1.03054
  17  1.0099
  18  0.00630133
  19  1.09493
  20  1.00338
  21  0.00634393
  22  1.20089
  23  1.19253
  24  6.72897e-07
  25  1.06472
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.250e-04  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.468e+00  1.065e+00  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:  1.000e-02  6.729e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 171.491 20.091
Photon Flux Upper Limit: 9.35e-06 ph cm-2 s-1
Energy Flux Upper Limit: 7.14e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/784711/likelihoodResults_556329601_556588801_4FGL_J1125.9+2005_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) = 152.224518381
delta logL = -8.19256842988e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 152.224519903
delta logL = -9.71459280663e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95710E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2417       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4679       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   152.2245     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      251 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10920E-03    1586.1        .18155E-01** at limit **
   2  Index         2.0097        8.7579        .50000        .20506E-06
   3  Normalizat    .10000E-01    .12747E-01    .97912E-02** at limit **
   4  Prefactor     1.4678        .37282E-01    .18377E-03    .62058E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000109203
  Index      = 2.00968
  Normalizat = 0.01
  Prefactor  = 1.4678
 **********
 **   18 **HESSE 
 **********

 FCN=   152.2245     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10920E-03    8360.2        .32008E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0097        5.9600        .50000       -.64108    
   3  Normalizat    .10000E-01    .71704E-01    .19582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4678        .88425E-01    .73506E-05   -.78446    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.54768e-09
Minuit parameter uncertainties:
  1  0.583108
  2  6827.79
  3  1.89175e-05
  4  0.088434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784711': 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) = 152.224510182
delta logL = 6.92935486768e-09

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.092e-04  5.831e-01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.010e+00  6.828e+03  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.468e+00  8.843e-02  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:  1.000e-02  1.892e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/784711/cmap_HighResolution_556329601_556588801_4FGL_J1125.9+2005_daily_bin1223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.14e-01', job_status='DONE', photon_flux_upper_limit='9.35e-06', time_completed='2021-09-03 20:48:50.144739', job_id='784711', GAL2='1.47', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630727330.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.47', dlogl='6.93e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1223' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:48:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 784711: <4FGL_J1125.9+2005_daily_bin1223> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin1223> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:36:25 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:39:30 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:39:30 2021
Terminated at Fri Sep  3 20:48:50 2021
Results reported at Fri Sep  3 20:48:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1223 171.491 20.0912 556329601 556588801 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 :                                   333.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             235.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   560 sec.
    Turnaround time :                            745 sec.

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

