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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1008
RA = 171.491, Dec = 20.0912
tmin = 500601601, tmax = 500860801
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='784403', job_status='RUN', time_executed='2021-09-03 20:36:54.480643', time_epoch_executed='1630726614.48' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784403

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784403/ft1_4FGL_J1125.9+2005_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784403/ft2_4FGL_J1125.9+2005_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784403/ft1_4FGL_J1125.9+2005_daily_bin1008.fits outfile=/scratch/kocevski/784403/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1008.fits ra=171.491 dec=20.0912 rad=12.0 tmin=500601601.0 tmax=500860801.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 5.18
user 4.91
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/784403/ft1_filtered_4FGL_J1125.9+2005_daily_bin1008.fits" evtable="EVENTS" scfile=/scratch/kocevski/784403/ft2_4FGL_J1125.9+2005_daily_bin1008.fits sctable="SC_DATA" outfile=/scratch/kocevski/784403/ltcube_500601601_500860801_4FGL_J1125.9+2005_daily_bin1008.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/784403/ft2_4FGL_J1125.9+2005_daily_bin1008.fits
.....................!
real 17.61
user 17.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784403/ft1_filtered_4FGL_J1125.9+2005_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/784403/ft2_4FGL_J1125.9+2005_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/784403/ltcube_500601601_500860801_4FGL_J1125.9+2005_daily_bin1008.fits outfile=/scratch/kocevski/784403/expmap_500601601_500860801_4FGL_J1125.9+2005_daily_bin1008.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/784403/ltcube_500601601_500860801_4FGL_J1125.9+2005_daily_bin1008.fits
.....................!
real 193.32
user 188.28
sys 4.40

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/784403/ft1_filtered_4FGL_J1125.9+2005_daily_bin1008.fits scfile=/scratch/kocevski/784403/ft2_4FGL_J1125.9+2005_daily_bin1008.fits outfile=/scratch/kocevski/784403/cmap_500601601_500860801_4FGL_J1125.9+2005_daily_bin1008.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784403/ft1_filtered_4FGL_J1125.9+2005_daily_bin1008.fits scfile=/scratch/kocevski/784403/ft2_4FGL_J1125.9+2005_daily_bin1008.fits outfile=/scratch/kocevski/784403/cmap_HighResolution_500601601_500860801_4FGL_J1125.9+2005_daily_bin1008.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/784403/ft1_filtered_4FGL_J1125.9+2005_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/784403/ft2_4FGL_J1125.9+2005_daily_bin1008.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/784403/Model_4FGL_J1125.9+2005_daily_bin1008.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/784403/ft1_filtered_4FGL_J1125.9+2005_daily_bin1008.fits.....................!
real 49.72
user 48.22
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2114       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.818       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0209       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0676       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14865E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.079       1.0000         .10000E-03   10000.    
    12 'norm      '    4.3475       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3756       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    43.743       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.8470       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7887       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.0415       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.0610       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2883       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .68564       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=   4745.878     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2902 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3847        .27289E-07** at limit **
   2  Prefactor     3.2115        2.3205        .84298E-08   -.32774E-05
   3  Prefactor     19.821        10.546       -.60447E-07   -.31507E-04
   4  Prefactor     .10000E-03    2.7229        .11728E-08** at limit **
   5  Prefactor     .10000E-03    10.322        .25895E-06** at limit **
   6  Prefactor     6.0215        8.8249       -.66434E-06   -.25721E-03
   7  Prefactor     .10000E-03    6.2992       -.51809E-07** at limit **
   8  norm          1.0679        1.1223        .16184E-07   -.17350E-04
   9  Prefactor     .10000E-03    1.6256        .91458E-07** at limit **
  10  Prefactor     .10000E-03    2.2399       -.74492E-07** at limit **
  11  norm          10.081        11.430        .18527E-06   -.44184E-05
  12  norm          4.3500        14.243       -.67321E-06   -.83588E-04
  13  Prefactor     4.3792        9.2988        .39308E-05   -.59156E-03
  14  Prefactor     .10000E-03    10.605        .99887E-07** at limit **
  15  Prefactor     43.725        36.761       -.42769E-05   -.45416E-03
  16  Prefactor     9.8500        10.714       -.20448E-06   -.61751E-04
  17  Prefactor     .10000E-03    9.8031       -.49396E-07** at limit **
  18  Prefactor     6.7943        12.707       -.72074E-06   -.12771E-03
  19  Prefactor     .10000E-03    .92680        .36695E-07** at limit **
  20  norm          1.0416        1.0514       -.87793E-08    .43789E-04
  21  Prefactor     .10000E-03    19.852       -.11295E-06** at limit **
  22  Prefactor     .10000E-03    3.8611        .43523E-07** at limit **
  23  Prefactor     5.0635        4.6412        .43299E-06    .28717E-03
  24  Normalizat    1.2877        .20903        .37617E-06   -.71836E-04
  25  Prefactor     .68619        .20026       -.42721E-06   -.75542E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.21148
  Prefactor  = 19.8213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.02148
  Prefactor  = 0.0001
  norm       = 1.06787
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 10.0806
  norm       = 4.34997
  Prefactor  = 4.37921
  Prefactor  = 0.0001
  Prefactor  = 43.7254
  Prefactor  = 9.84996
  Prefactor  = 0.0001
  Prefactor  = 6.79426
  Prefactor  = 0.0001
  norm       = 1.04158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.0635
  Normalizat = 1.28771
  Prefactor  = 0.68619
 **********
 **   18 **HESSE 
 **********

 FCN=   4745.878     FROM HESSE     STATUS=OK           435 CALLS     3337 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4057        .15610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.2115        2.3207        .86327E-04   -1.5350    
   3  Prefactor     19.821        10.575        .89970E-04   -1.4817    
   4  Prefactor     .10000E-03    2.7272        .11101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0215        8.9160        .16363E-03   -1.5217    
   7  Prefactor     .10000E-03    6.3233        .16887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0679        1.0928        .71980E-04   -1.5501    
   9  Prefactor     .10000E-03    3.3015        .30665E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2426        .10070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.081        11.419        .12622E-03   -1.5073    
  12  norm          4.3500        14.327        .19318E-03   -1.5291    
  13  Prefactor     4.3792        10.173        .96273E-03   -1.5289    
  14  Prefactor     .10000E-03    10.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     43.725        39.556        .60616E-04   -1.4384    
  16  Prefactor     9.8500        10.731        .12770E-03   -1.5080    
  17  Prefactor     .10000E-03    9.8200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.7943        12.751        .15399E-03   -1.5187    
  19  Prefactor     .10000E-03    .94069        .64721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0416        1.0677        .69130E-04   -1.5504    
  21  Prefactor     .10000E-03    19.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.9124        .13193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.0635        4.6515        .13452E-03   -1.5258    
  24  Normalizat    1.2877        .24953        .22709E-03   -.83934    
  25  Prefactor     .68619        .23543        .30233E-03   -1.0407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72391e-09
Minuit parameter uncertainties:
  1  2.63083e-06
  2  2.3208
  3  10.5756
  4  1.82131e-06
  5  1.63816e-05
  6  8.91796
  7  9.21592e-06
  8  1.09282
  9  0.000118855
  10  4.3278e-06
  11  11.4215
  12  14.338
  13  10.1771
  14  1.11296e-05
  15  39.5801
  16  10.7334
  17  1.03001e-05
  18  12.7558
  19  1.41175e-07
  20  1.06767
  21  2.81839e-05
  22  9.49379e-06
  23  4.65179
  24  0.249763
  25  0.235776
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  4.379e+00  1.018e+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:  6.862e-01  2.358e-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.288e+00  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/784403/likelihoodResults_500601601_500860801_4FGL_J1125.9+2005_daily_bin1008.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) = 4745.11473062
delta logL = 0.763257044655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4745.07642204
delta logL = 0.801565627085

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17651       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6469       1.0000          .0000       10.000    
     3 'Normalizat'    1.1871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75633       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=   4745.076     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      324 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17357        2.2491        .50579E-02    .16871E-02
   2  Index         4.6545        2.3851        .10526        .14115E-03
   3  Normalizat    1.1873        .49016E-01    .53142E-01    .58796E-05
   4  Prefactor     .75598        .49361E-01    .65420E-01    .15921E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.173569
  Index      = 4.65446
  Normalizat = 1.18733
  Prefactor  = 0.755978
 **********
 **   18 **HESSE 
 **********

 FCN=   4745.076     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      359 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17357        5.6423        .22969E-03   -1.5625    
   2  Index         4.6545        4.1945        .38170E-02   -.69163E-01
   3  Normalizat    1.1873        .18667        .23497E-03   -.86995    
   4  Prefactor     .75598        .18484        .28942E-03   -1.0137    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.24808e-11
Minuit parameter uncertainties:
  1  1.97886
  2  4.98289
  3  0.186773
  4  0.184996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784403': 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) = 4745.07641577
delta logL = 0.801571896212

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.736e-01  1.979e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  4.654e+00  4.983e+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:  7.560e-01  1.850e-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.187e+00  1.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.00
Ra Dec: 171.491 20.091
Photon Index (Free Index): 4.65 +/- 4.98
Photon Flux (Free Index): 8.85e-08 +/- 7.33e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.01e-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/784403/cmap_HighResolution_500601601_500860801_4FGL_J1125.9+2005_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', comment='SUCCESS', energy_flux2='1.22e-05', dlogl='8.02e-01', photon_flux2='8.85e-08', job_status='DONE', time_completed='2021-09-03 20:48:06.139127', photon_index_error2='4.98', photon_index2='4.65', ts='0.25', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='9.50e-08', energy_flux_error2='1.01e-05', EG='1.29', time_epoch_completed='1630727286.14', return_code='0', job_id='784403', GAL2='0.76', EG2='1.19', return_code2='102', photon_flux_error2='7.33e-08', ts2='2.00', photon_index='2.24' WHERE bin_id='1008' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:48:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 784403: <4FGL_J1125.9+2005_daily_bin1008> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1008 171.491 20.0912 500601601 500860801 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 :                                   668.56 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             365.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            720 sec.

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

