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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin89
RA = 171.491, Dec = 20.0912
tmin = 262396801, tmax = 262656001
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='778559', job_status='RUN', time_executed='2021-09-03 20:20:28.085352', time_epoch_executed='1630725628.09' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='89'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/778559

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/778559/ft1_4FGL_J1125.9+2005_daily_bin89.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/778559/ft2_4FGL_J1125.9+2005_daily_bin89.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/778559/ft1_4FGL_J1125.9+2005_daily_bin89.fits outfile=/scratch/kocevski/778559/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin89.fits ra=171.491 dec=20.0912 rad=12.0 tmin=262396801.0 tmax=262656001.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.43
user 1.24
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/778559/ft2_4FGL_J1125.9+2005_daily_bin89.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/778559/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin89.fits evtable="EVENTS" outfile="/scratch/kocevski/778559/ft1_filtered_4FGL_J1125.9+2005_daily_bin89.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.50
user 0.35
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/778559/ft1_filtered_4FGL_J1125.9+2005_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/778559/ft2_4FGL_J1125.9+2005_daily_bin89.fits sctable="SC_DATA" expcube=/scratch/kocevski/778559/ltcube_262396801_262656001_4FGL_J1125.9+2005_daily_bin89.fits outfile=/scratch/kocevski/778559/expmap_262396801_262656001_4FGL_J1125.9+2005_daily_bin89.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/778559/ltcube_262396801_262656001_4FGL_J1125.9+2005_daily_bin89.fits
.....................!
real 190.63
user 185.95
sys 4.23

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/778559/ft1_filtered_4FGL_J1125.9+2005_daily_bin89.fits scfile=/scratch/kocevski/778559/ft2_4FGL_J1125.9+2005_daily_bin89.fits outfile=/scratch/kocevski/778559/cmap_262396801_262656001_4FGL_J1125.9+2005_daily_bin89.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/778559/ft1_filtered_4FGL_J1125.9+2005_daily_bin89.fits scfile=/scratch/kocevski/778559/ft2_4FGL_J1125.9+2005_daily_bin89.fits outfile=/scratch/kocevski/778559/cmap_HighResolution_262396801_262656001_4FGL_J1125.9+2005_daily_bin89.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9151       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2231       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12549E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6880       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.4831       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8603       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6370       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0421       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7072       1.0000         .10000E-03   10000.    
    11 'norm      '    9.5657       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9263       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.6729       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.203       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7222       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.369       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5338       1.0000         .10000E-03   10000.    
    20 'norm      '    3.8117       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .95461       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92699       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90491       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=   6202.953     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2495 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9127        8.5842       -.19981E-06   -.71398E-04
   2  Prefactor     .10000E-03    .91897       -.37402E-07** at limit **
   3  Prefactor     4.2229        4.9710        .30259E-06   -.73445E-05
   4  Prefactor     .10000E-03    12.699       -.16485E-05** at limit **
   5  Prefactor     6.6784        9.7859        .23069E-05   -.59806E-03
   6  Prefactor     7.4829        7.7983        .46903E-07    .67762E-06
   7  Prefactor     7.8561        13.287        .11889E-05   -.37669E-03
   8  norm          1.6370        1.2448        .56467E-07   -.16313E-03
   9  Prefactor     3.0422        2.5968        .17312E-07   -.38488E-04
  10  Prefactor     8.7070        6.7370       -.72304E-07   -.57717E-04
  11  norm          9.5642        10.003        .67025E-06    .93206E-04
  12  norm          1.9272        18.212        .66353E-06   -.92807E-04
  13  Prefactor     8.6724        10.543        .22672E-06   -.35493E-05
  14  Prefactor     .10000E-03    27.286        .57866E-06** at limit **
  15  Prefactor     12.191        18.575       -.38642E-05   -.49472E-03
  16  Prefactor     4.7316        13.322        .18723E-05    .13489E-03
  17  Prefactor     .10000E-03    7.3192        .27558E-07** at limit **
  18  Prefactor     11.369        9.9233        .25080E-06    .17773E-04
  19  Prefactor     1.5339        1.6517        .11392E-06   -.16477E-03
  20  norm          3.8116        1.6960        .13461E-08   -.41678E-04
  21  Prefactor     .94716        10.765        .11761E-05   -.21684E-03
  22  Prefactor     .10000E-03    1.6494        .42085E-07** at limit **
  23  Prefactor     .10000E-03    1.7616        .65162E-07** at limit **
  24  Normalizat    .92698        .17949       -.10262E-05   -.13962E-04
  25  Prefactor     .90492        .17144        .18913E-07   -.65000E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.91271
  Prefactor  = 0.0001
  Prefactor  = 4.22286
  Prefactor  = 0.000100001
  Prefactor  = 6.67837
  Prefactor  = 7.48291
  Prefactor  = 7.85608
  norm       = 1.63698
  Prefactor  = 3.0422
  Prefactor  = 8.707
  norm       = 9.5642
  norm       = 1.92725
  Prefactor  = 8.67245
  Prefactor  = 0.0001
  Prefactor  = 12.1914
  Prefactor  = 4.73161
  Prefactor  = 0.0001
  Prefactor  = 11.3691
  Prefactor  = 1.53386
  norm       = 3.81159
  Prefactor  = 0.947159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.926984
  Prefactor  = 0.904916
 **********
 **   18 **HESSE 
 **********

 FCN=   6202.953     FROM HESSE     STATUS=OK           441 CALLS     2936 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9127        8.5906        .13424E-03   -1.5111    
   2  Prefactor     .10000E-03    .93497        .73616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2229        4.9632        .18214E-03   -1.5297    
   4  Prefactor     .10000E-03    13.472        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.6784        10.259        .77581E-03   -1.5191    
   6  Prefactor     7.4829        7.7875        .14661E-03   -1.5161    
   7  Prefactor     7.8561        13.404        .71510E-03   -1.5147    
   8  norm          1.6370        1.2330        .72285E-04   -1.5452    
   9  Prefactor     3.0422        2.5977        .11016E-03   -1.5359    
  10  Prefactor     8.7070        6.7419        .13584E-03   -1.5118    
  11  norm          9.5642        10.006        .12957E-03   -1.5089    
  12  norm          1.9272        18.644        .29932E-03   -1.5430    
  13  Prefactor     8.6724        10.547        .13611E-03   -1.5119    
  14  Prefactor     .10000E-03    27.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.191        20.168        .11467E-03   -1.5009    
  16  Prefactor     4.7316        13.296        .18517E-03   -1.5273    
  17  Prefactor     .10000E-03    7.3415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.369        9.9239        .11881E-03   -1.5033    
  19  Prefactor     1.5339        1.6353        .10022E-03   -1.5460    
  20  norm          3.8116        1.6966        .66255E-04   -1.5317    
  21  Prefactor     .94716        43.621        .49180E-02   -1.5513    
  22  Prefactor     .10000E-03    1.6923        .19744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.8438        .20399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .92698        .20925        .23889E-03   -.95518    
  25  Prefactor     .90492        .19905        .25544E-03   -.95970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24156e-09
Minuit parameter uncertainties:
  1  8.59174
  2  6.95717e-07
  3  4.96369
  4  0.000225031
  5  10.2616
  6  7.78852
  7  13.4094
  8  1.23301
  9  2.59777
  10  6.74248
  11  10.0073
  12  11.993
  13  10.5496
  14  0.000118992
  15  20.1789
  16  13.3043
  17  1.26284e-06
  18  9.92532
  19  1.63539
  20  1.69662
  21  12.8648
  22  1.20729e-06
  23  2.16265e-06
  24  0.209436
  25  0.199205
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  8.672e+00  1.055e+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:  9.049e-01  1.992e-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.270e-01  2.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 171.491 20.091
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.41e-08 +/- 2.93e-08
Energy Flux (Fixed Index): 1.00e-05 +/- 1.22e-05

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

Saving results to:
/scratch/kocevski/778559/likelihoodResults_262396801_262656001_4FGL_J1125.9+2005_daily_bin89.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) = 6202.86469078
delta logL = 0.0887837880264

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6202.85959686
delta logL = 0.0938777019128

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7029       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5989       1.0000          .0000       10.000    
     3 'Normalizat'    .91104       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91444       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=   6202.860     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      266 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7026        10.694        .15499E-03   -.10878E-03
   2  Index         2.5993        .90234        .62777E-02   -.25535E-04
   3  Normalizat    .91101        .19023        .24076E-03   -.18057E-03
   4  Prefactor     .91445        .19748        .25425E-03   -.15909E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.70259
  Index      = 2.59932
  Normalizat = 0.91101
  Prefactor  = 0.914454
 **********
 **   18 **HESSE 
 **********

 FCN=   6202.860     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7026        9.7224        .61995E-05   -1.5190    
   2  Index         2.5993        .81974        .25111E-03   -.50081    
   3  Normalizat    .91101        .19007        .96304E-05   -.96074    
   4  Prefactor     .91445        .19739        .10170E-04   -.95638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8009e-11
Minuit parameter uncertainties:
  1  9.72472
  2  0.824591
  3  0.190206
  4  0.197548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/778559': 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) = 6202.85959663
delta logL = 0.0938779338312

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  6.703e+00  9.725e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.599e+00  8.246e-01  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:  9.145e-01  1.975e-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.110e-01  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 171.491 20.091
Photon Index (Free Index): 2.60 +/- 0.82
Photon Flux (Free Index): 3.67e-08 +/- 4.50e-08
Energy Flux (Free Index): 9.63e-06 +/- 1.02e-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/778559/cmap_HighResolution_262396801_262656001_4FGL_J1125.9+2005_daily_bin89.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.01e-03', comment='SUCCESS', photon_flux='2.41e-08', energy_flux2='9.63e-06', photon_flux_error='2.93e-08', dlogl='9.39e-02', energy_flux='1.00e-05', photon_flux2='3.67e-08', job_status='DONE', time_completed='2021-09-03 20:32:23.383937', photon_index_error2='0.82', photon_index2='2.60', ts='1.03', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='9.17e-08', energy_flux_error2='1.02e-05', EG='0.93', time_epoch_completed='1630726343.38', return_code='0', job_id='778559', GAL2='0.91', EG2='0.91', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='4.50e-08', ts2='1.23', photon_index='2.24' WHERE bin_id='89' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:32:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 778559: <4FGL_J1125.9+2005_daily_bin89> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin89 171.491 20.0912 262396801 262656001 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 :                                   714.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            957 sec.

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

