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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1023
RA = 171.491, Dec = 20.0912
tmin = 504489601, tmax = 504748801
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='784424', job_status='RUN', time_executed='2021-09-03 20:36:55.324815', time_epoch_executed='1630726615.32' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1023'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784424

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784424/ft1_4FGL_J1125.9+2005_daily_bin1023.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784424/ft2_4FGL_J1125.9+2005_daily_bin1023.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784424/ft1_4FGL_J1125.9+2005_daily_bin1023.fits outfile=/scratch/kocevski/784424/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1023.fits ra=171.491 dec=20.0912 rad=12.0 tmin=504489601.0 tmax=504748801.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 4.64
user 4.32
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/784424/ft1_filtered_4FGL_J1125.9+2005_daily_bin1023.fits" evtable="EVENTS" scfile=/scratch/kocevski/784424/ft2_4FGL_J1125.9+2005_daily_bin1023.fits sctable="SC_DATA" outfile=/scratch/kocevski/784424/ltcube_504489601_504748801_4FGL_J1125.9+2005_daily_bin1023.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/784424/ft2_4FGL_J1125.9+2005_daily_bin1023.fits
.....................!
real 17.94
user 17.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784424/ft1_filtered_4FGL_J1125.9+2005_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/784424/ft2_4FGL_J1125.9+2005_daily_bin1023.fits sctable="SC_DATA" expcube=/scratch/kocevski/784424/ltcube_504489601_504748801_4FGL_J1125.9+2005_daily_bin1023.fits outfile=/scratch/kocevski/784424/expmap_504489601_504748801_4FGL_J1125.9+2005_daily_bin1023.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/784424/ltcube_504489601_504748801_4FGL_J1125.9+2005_daily_bin1023.fits
.....................!
real 197.50
user 189.86
sys 5.15

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/784424/ft1_filtered_4FGL_J1125.9+2005_daily_bin1023.fits scfile=/scratch/kocevski/784424/ft2_4FGL_J1125.9+2005_daily_bin1023.fits outfile=/scratch/kocevski/784424/cmap_504489601_504748801_4FGL_J1125.9+2005_daily_bin1023.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784424/ft1_filtered_4FGL_J1125.9+2005_daily_bin1023.fits scfile=/scratch/kocevski/784424/ft2_4FGL_J1125.9+2005_daily_bin1023.fits outfile=/scratch/kocevski/784424/cmap_HighResolution_504489601_504748801_4FGL_J1125.9+2005_daily_bin1023.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5858       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5547       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8909       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.632       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10433E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.304       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1608       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3579       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7388       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.2129       1.0000         .10000E-03   10000.    
    12 'norm      '    5.7472       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6881       1.0000         .10000E-03   10000.    
    15 'Prefactor '    60.499       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.096       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2267       1.0000         .10000E-03   10000.    
    20 'norm      '    12.697       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.3815       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3590       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0180       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0270       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.

 FCN=   6014.943     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2855 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5871        13.156        .63393E-05   -.11775E-03
   2  Prefactor     1.5552        2.8574       -.89958E-07    .22265E-03
   3  Prefactor     2.8914        7.0373        .45876E-05   -.19326E-03
   4  Prefactor     12.631        11.141        .15336E-06    .32496E-03
   5  Prefactor     .10000E-03    15.986       -.14819E-05** at limit **
   6  Prefactor     15.304        12.998        .16424E-06   -.85469E-05
   7  Prefactor     3.1620        17.377        .48244E-06    .26785E-04
   8  norm          1.3580        1.1109        .40800E-08   -.61551E-05
   9  Prefactor     2.7393        3.1742        .87508E-07   -.12101E-03
  10  Prefactor     .10000E-03    2.4625        .44909E-07** at limit **
  11  norm          8.2133        8.2380        .29795E-06    .16786E-04
  12  norm          5.7496        9.1528        .82871E-06   -.13545E-03
  13  Prefactor     .10000E-03    16.898        .15684E-05** at limit **
  14  Prefactor     2.6716        36.874        .88752E-05    .63443E-04
  15  Prefactor     60.512        53.657       -.11915E-05   -.10552E-03
  16  Prefactor     .10000E-03    6.1432       -.12849E-05** at limit **
  17  Prefactor     11.101        17.801       -.77194E-06   -.92973E-04
  18  Prefactor     .10000E-03    8.5549        .40051E-06** at limit **
  19  Prefactor     2.2268        1.5475        .76482E-07   -.20087E-05
  20  norm          12.698        3.0927        .73080E-07   -.12635E-03
  21  Prefactor     8.3769        21.417        .23735E-05    .32855E-04
  22  Prefactor     .10000E-03    1.2240        .35833E-07** at limit **
  23  Prefactor     4.3594        3.1447        .14412E-06   -.34399E-04
  24  Normalizat    1.0176        .21114       -.27151E-05   -.13935E-03
  25  Prefactor     1.0274        .19671       -.24491E-07   -.19015E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.58714
  Prefactor  = 1.55519
  Prefactor  = 2.89138
  Prefactor  = 12.6308
  Prefactor  = 0.0001
  Prefactor  = 15.3036
  Prefactor  = 3.16203
  norm       = 1.35798
  Prefactor  = 2.73932
  Prefactor  = 0.0001
  norm       = 8.21334
  norm       = 5.74964
  Prefactor  = 0.0001
  Prefactor  = 2.67157
  Prefactor  = 60.5122
  Prefactor  = 0.000100001
  Prefactor  = 11.1013
  Prefactor  = 0.0001
  Prefactor  = 2.22683
  norm       = 12.6976
  Prefactor  = 8.37693
  Prefactor  = 0.0001
  Prefactor  = 4.35944
  Normalizat = 1.01757
  Prefactor  = 1.02743
 **********
 **   18 **HESSE 
 **********

 FCN=   6014.943     FROM HESSE     STATUS=OK           437 CALLS     3292 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5871        13.037        .12689E-02   -1.5386    
   2  Prefactor     1.5552        2.8031        .15983E-03   -1.5459    
   3  Prefactor     2.8914        7.0219        .11951E-02   -1.5368    
   4  Prefactor     12.631        11.122        .11270E-03   -1.4997    
   5  Prefactor     .10000E-03    16.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.304        12.987        .10238E-03   -1.4925    
   7  Prefactor     3.1620        17.138        .22797E-03   -1.5352    
   8  norm          1.3580        1.1110        .37496E-04   -1.5475    
   9  Prefactor     2.7393        3.1601        .13666E-03   -1.5377    
  10  Prefactor     .10000E-03    2.4674        .11885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.2133        8.2349        .13989E-03   -1.5135    
  12  norm          5.7496        9.1528        .83771E-03   -1.5228    
  13  Prefactor     .10000E-03    17.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.6716        37.187        .24851E-03   -1.5381    
  15  Prefactor     60.512        53.878        .51585E-04   -1.4151    
  16  Prefactor     .10000E-03    6.2213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.101        17.815        .12027E-03   -1.5041    
  18  Prefactor     .10000E-03    8.6269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2268        1.5469        .77433E-04   -1.5410    
  20  norm          12.698        3.0938        .64368E-04   -1.4995    
  21  Prefactor     8.3769        21.446        .13847E-03   -1.5129    
  22  Prefactor     .10000E-03    1.2275        .83775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.3594        3.1427        .11227E-03   -1.5290    
  24  Normalizat    1.0176        .24571        .27213E-03   -.92444    
  25  Prefactor     1.0274        .22997        .27773E-03   -.91821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.18097e-10
Minuit parameter uncertainties:
  1  11.6189
  2  2.8033
  3  7.02387
  4  11.1243
  5  9.58883e-05
  6  12.9889
  7  14.7291
  8  1.11103
  9  3.16032
  10  3.74833e-06
  11  8.23602
  12  9.15505
  13  0.00014826
  14  19.9492
  15  53.9213
  16  0.000165188
  17  17.8231
  18  4.53133e-05
  19  1.5469
  20  3.0938
  21  21.4661
  22  2.38123e-06
  23  3.14279
  24  0.245982
  25  0.230187
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.483e-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.027e+00  2.302e-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:  1.018e+00  2.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/784424/likelihoodResults_504489601_504748801_4FGL_J1125.9+2005_daily_bin1023.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) = 6014.94298785
delta logL = -0.000276930074506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6014.94271244
delta logL = -1.52016400534e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18669E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3449       1.0000          .0000       10.000    
     3 'Normalizat'    1.0180       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0270       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=   6012.018     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      248 TOTAL
                     EDM=   .27E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29040E-02    .26066E-01   -.18558E-06   -.27673E-02
   2  Index         6.6317        2.2947        .29397E-04   -.16849E-04
   3  Normalizat    .80048        .22945        .23213E-05    .35090E-04
   4  Prefactor     1.1793        .23241       -.18234E-05    .54752E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00290399
  Index      = 6.63171
  Normalizat = 0.800481
  Prefactor  = 1.17934
 **********
 **   18 **HESSE 
 **********

 FCN=   6012.018     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      285 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29040E-02    .21379E-01    .48478E-03   -1.5697    
   2  Index         6.6317        1.9481        .70756E-01    .33243    
   3  Normalizat    .80048        .63570E-01    .68486E-01   -1.0005    
   4  Prefactor     1.1793        .65167E-01    .41503E-01   -.86969    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.46549e-09
Minuit parameter uncertainties:
  1  0.015485
  2  2.00791
  3  0.0635754
  4  0.0651712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784424': 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) = 6012.0183886
delta logL = 2.92432231712

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  2.904e-03  1.548e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  6.632e+00  2.008e+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.179e+00  6.517e-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:  8.005e-01  6.358e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.64
Ra Dec: 171.491 20.091
Photon Index (Free Index): 6.63 +/- 2.01
Photon Flux (Free Index): 1.67e-07 +/- 8.72e-08
Energy Flux (Free Index): 2.03e-05 +/- 1.19e-05

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/784424/cmap_HighResolution_504489601_504748801_4FGL_J1125.9+2005_daily_bin1023.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-03', comment='SUCCESS', energy_flux2='2.03e-05', dlogl='2.92e+00', photon_flux2='1.67e-07', job_status='DONE', time_completed='2021-09-03 20:49:18.659320', photon_index_error2='2.01', photon_index2='6.63', ts='-0.00', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='8.07e-08', energy_flux_error2='1.19e-05', EG='1.02', time_epoch_completed='1630727358.66', return_code='0', job_id='784424', GAL2='1.18', EG2='0.80', return_code2='102', photon_flux_error2='8.72e-08', ts2='6.64', photon_index='2.24' WHERE bin_id='1023' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:49:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 784424: <4FGL_J1125.9+2005_daily_bin1023> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1023 171.491 20.0912 504489601 504748801 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 :                                   733.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            791 sec.

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

