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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin35
RA = 171.491, Dec = 20.0912
tmin = 248400001, tmax = 248659201
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='778474', job_status='RUN', time_executed='2021-09-03 20:20:14.134152', time_epoch_executed='1630725614.13' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/778474

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/778474/ft1_4FGL_J1125.9+2005_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/778474/ft2_4FGL_J1125.9+2005_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/778474/ft1_4FGL_J1125.9+2005_daily_bin35.fits outfile=/scratch/kocevski/778474/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin35.fits ra=171.491 dec=20.0912 rad=12.0 tmin=248400001.0 tmax=248659201.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 1.47
user 1.29
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/778474/ft2_4FGL_J1125.9+2005_daily_bin35.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/778474/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin35.fits evtable="EVENTS" outfile="/scratch/kocevski/778474/ft1_filtered_4FGL_J1125.9+2005_daily_bin35.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.52
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/778474/ft1_filtered_4FGL_J1125.9+2005_daily_bin35.fits" evtable="EVENTS" scfile=/scratch/kocevski/778474/ft2_4FGL_J1125.9+2005_daily_bin35.fits sctable="SC_DATA" outfile=/scratch/kocevski/778474/ltcube_248400001_248659201_4FGL_J1125.9+2005_daily_bin35.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/778474/ft2_4FGL_J1125.9+2005_daily_bin35.fits
.....................!
real 19.08
user 18.71
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/778474/ft1_filtered_4FGL_J1125.9+2005_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/778474/ft2_4FGL_J1125.9+2005_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/778474/ltcube_248400001_248659201_4FGL_J1125.9+2005_daily_bin35.fits outfile=/scratch/kocevski/778474/expmap_248400001_248659201_4FGL_J1125.9+2005_daily_bin35.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/778474/ltcube_248400001_248659201_4FGL_J1125.9+2005_daily_bin35.fits
.....................!
real 192.79
user 186.29
sys 4.97

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/778474/ft1_filtered_4FGL_J1125.9+2005_daily_bin35.fits scfile=/scratch/kocevski/778474/ft2_4FGL_J1125.9+2005_daily_bin35.fits outfile=/scratch/kocevski/778474/cmap_248400001_248659201_4FGL_J1125.9+2005_daily_bin35.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.57
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/778474/ft1_filtered_4FGL_J1125.9+2005_daily_bin35.fits scfile=/scratch/kocevski/778474/ft2_4FGL_J1125.9+2005_daily_bin35.fits outfile=/scratch/kocevski/778474/cmap_HighResolution_248400001_248659201_4FGL_J1125.9+2005_daily_bin35.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.59
user 0.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/778474/ft1_filtered_4FGL_J1125.9+2005_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/778474/ft2_4FGL_J1125.9+2005_daily_bin35.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/778474/Model_4FGL_J1125.9+2005_daily_bin35.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/778474/ft1_filtered_4FGL_J1125.9+2005_daily_bin35.fits.....................!
real 57.87
user 56.51
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.612       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7201       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9879       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1741       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4121       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .24366       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6372       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2809       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .55165E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5444       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19093E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1554       1.0000         .10000E-03   10000.    
    20 'norm      '    3.3027       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .58683E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.5583       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .22182       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95357       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89060       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.

 FCN=   6189.006     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     2601 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.609        9.3132        .27142E-02   -.18577E-03
   2  Prefactor     1.7199        1.5493        .80077E-02    .51687E-04
   3  Prefactor     9.9850        6.2158        .31698E-02   -.32883E-02
   4  Prefactor     .10000E-03    2.4509        .90712E-02** at limit **
   5  Prefactor     .10000E-03    13.333        .90712E-02** at limit **
   6  Prefactor     .10000E-03    4.4781        .90712E-02** at limit **
   7  Prefactor     .10000E-03    3.5352        .90712E-02** at limit **
   8  norm          .10000E-03    .40370        .26011E-01** at limit **
   9  Prefactor     5.1734        2.9118        .44183E-02    .30123E-03
  10  Prefactor     3.4114        4.2919        .54751E-02    .28639E-03
  11  norm          .10000E-03    4.4275        .90712E-02** at limit **
  12  norm          .24274        6.5731        .71664E-01    .39654E-03
  13  Prefactor     1.6366        4.4594        .82581E-02    .58182E-03
  14  Prefactor     .10000E-03    12.002        .90712E-02** at limit **
  15  Prefactor     1.2513        157.79        .98038E-02   -.16331E-03
  16  Prefactor     .10000E-03    6.8308        .10554    ** at limit **
  17  Prefactor     4.5436        13.548        .47211E-02    .91844E-04
  18  Prefactor     .10001E-03    8.8933        .91181E-01** at limit **
  19  Prefactor     1.1548        1.4768        .10741E-01    .59393E-03
  20  norm          3.3025        1.7559        .55693E-02    .16073E-03
  21  Prefactor     .10000E-03    12.247        .10538    ** at limit **
  22  Prefactor     4.5593        4.5376        .47137E-02    .15363E-02
  23  Prefactor     .21969        1.4301        .49543E-01    .17581E-02
  24  Normalizat    .95383        .16944        .45582E-01    .87143E-04
  25  Prefactor     .89066        .16430        .44885E-01    .79296E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.6092
  Prefactor  = 1.71987
  Prefactor  = 9.98498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.17336
  Prefactor  = 3.41136
  norm       = 0.0001
  norm       = 0.242741
  Prefactor  = 1.63656
  Prefactor  = 0.0001
  Prefactor  = 1.25127
  Prefactor  = 0.000100003
  Prefactor  = 4.54357
  Prefactor  = 0.000100009
  Prefactor  = 1.15479
  norm       = 3.30248
  Prefactor  = 0.000100003
  Prefactor  = 4.55927
  Prefactor  = 0.219687
  Normalizat = 0.953826
  Prefactor  = 0.890664
 **********
 **   18 **HESSE 
 **********

 FCN=   6189.006     FROM HESSE     STATUS=OK           451 CALLS     3052 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.609        9.3135        .10857E-03   -1.4970    
   2  Prefactor     1.7199        1.5474        .89046E-04   -1.5446    
   3  Prefactor     9.9850        6.2079        .12679E-03   -1.5076    
   4  Prefactor     .10000E-03    2.4629        .12024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.883        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.4873        .16252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.5398        .14445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .60579        .96510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.1734        2.9127        .95967E-04   -1.5253    
  10  Prefactor     3.4114        4.2806        .17683E-03   -1.5339    
  11  norm          .10000E-03    4.4494        .16160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .24274        47.552        .38179E-02   -1.5609    
  13  Prefactor     1.6366        4.4099        .26588E-03   -1.5452    
  14  Prefactor     .10000E-03    12.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2513        159.92        .39215E-03   -1.5484    
  16  Prefactor     .10000E-03    33.189        .39311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.5436        13.435        .18884E-03   -1.5282    
  18  Prefactor     .10001E-03    16.419        .62194E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.1548        1.4339        .10162E-03   -1.5493    
  20  norm          3.3025        1.7518        .73225E-04   -1.5344    
  21  Prefactor     .10000E-03    61.194        .52862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.5593        4.4735        .14889E-03   -1.5281    
  23  Prefactor     .21969        5.6134        .17453E-02   -1.5614    
  24  Normalizat    .95383        .19539        .22963E-03   -.94594    
  25  Prefactor     .89066        .19162        .24936E-03   -.96468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06583e-08
Minuit parameter uncertainties:
  1  9.31444
  2  1.54741
  3  6.2083
  4  9.30864e-07
  5  5.63564e-06
  6  1.95908e-05
  7  2.13871e-06
  8  5.46697e-07
  9  2.91282
  10  4.28099
  11  1.58486e-05
  12  6.79903
  13  4.41074
  14  5.56315e-05
  15  28.3685
  16  0.000609968
  17  13.4434
  18  0.000752732
  19  1.43395
  20  1.75184
  21  0.000849
  22  4.47386
  23  2.22071
  24  0.195537
  25  0.191762
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.637e+00  4.411e+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

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  8.907e-01  1.918e-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:  9.538e-01  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/778474/likelihoodResults_248400001_248659201_4FGL_J1125.9+2005_daily_bin35.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6188.98050336
delta logL = 0.0250128949529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6188.97139527
delta logL = 0.0341209856369

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3632       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8719       1.0000          .0000       10.000    
     3 'Normalizat'    .95585       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88893       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.

 FCN=   6188.971     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      263 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3680        5.8177        .13329E-02    .38673E-03
   2  Index         1.8721        1.2695        .11092E-01   -.51854E-05
   3  Normalizat    .95584        .17964        .22940E-03   -.17841E-05
   4  Prefactor     .88889        .19014        .24956E-03    .26878E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.36797
  Index      = 1.87208
  Normalizat = 0.955844
  Prefactor  = 0.888893
 **********
 **   18 **HESSE 
 **********

 FCN=   6188.971     FROM HESSE     STATUS=OK            27 CALLS      290 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3680        5.7303        .26657E-03   -1.5400    
   2  Index         1.8721        1.2517        .44366E-03   -.67588    
   3  Normalizat    .95584        .17980        .91761E-05   -.94525    
   4  Prefactor     .88889        .19031        .99823E-05   -.96530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74755e-12
Minuit parameter uncertainties:
  1  5.73166
  2  1.27423
  3  0.179912
  4  0.190451
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/778474': 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) = 6188.97139481
delta logL = 0.0341214424343

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  2.368e+00  5.732e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.872e+00  1.274e+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:  8.889e-01  1.905e-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:  9.558e-01  1.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
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/778474/cmap_HighResolution_248400001_248659201_4FGL_J1125.9+2005_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.61e-03', job_status='DONE', photon_flux_upper_limit='4.73e-08', time_completed='2021-09-03 20:32:18.143110', job_id='778474', GAL2='0.89', fit_tolerance='1e-08', EG2='0.96', EG='0.95', time_epoch_completed='1630726338.14', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.41e-02', ts2='0.25', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='35' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:32:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 778474: <4FGL_J1125.9+2005_daily_bin35> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin35> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 20:16:20 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:16:28 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:16:28 2021
Terminated at Fri Sep  3 20:32:18 2021
Results reported at Fri Sep  3 20:32:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin35 171.491 20.0912 248400001 248659201 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 :                                   723.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            958 sec.

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

