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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin41
RA = 171.491, Dec = 20.0912
tmin = 249955201, tmax = 250214401
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='778484', job_status='RUN', time_executed='2021-09-03 20:18:45.263266', time_epoch_executed='1630725525.26' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/778484

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/778484/ft1_4FGL_J1125.9+2005_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/778484/ft2_4FGL_J1125.9+2005_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/778484/ft1_4FGL_J1125.9+2005_daily_bin41.fits outfile=/scratch/kocevski/778484/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin41.fits ra=171.491 dec=20.0912 rad=12.0 tmin=249955201.0 tmax=250214401.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.55
user 1.28
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/778484/ft1_filtered_4FGL_J1125.9+2005_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/778484/ft2_4FGL_J1125.9+2005_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/778484/ltcube_249955201_250214401_4FGL_J1125.9+2005_daily_bin41.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/778484/ft2_4FGL_J1125.9+2005_daily_bin41.fits
.....................!
real 18.05
user 17.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/778484/ft1_filtered_4FGL_J1125.9+2005_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/778484/ft2_4FGL_J1125.9+2005_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/778484/ltcube_249955201_250214401_4FGL_J1125.9+2005_daily_bin41.fits outfile=/scratch/kocevski/778484/expmap_249955201_250214401_4FGL_J1125.9+2005_daily_bin41.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/778484/ltcube_249955201_250214401_4FGL_J1125.9+2005_daily_bin41.fits
.....................!
real 192.99
user 187.22
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/778484/ft1_filtered_4FGL_J1125.9+2005_daily_bin41.fits scfile=/scratch/kocevski/778484/ft2_4FGL_J1125.9+2005_daily_bin41.fits outfile=/scratch/kocevski/778484/cmap_249955201_250214401_4FGL_J1125.9+2005_daily_bin41.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=171.491 yref=20.0912 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/778484/ft1_filtered_4FGL_J1125.9+2005_daily_bin41.fits scfile=/scratch/kocevski/778484/ft2_4FGL_J1125.9+2005_daily_bin41.fits outfile=/scratch/kocevski/778484/cmap_HighResolution_249955201_250214401_4FGL_J1125.9+2005_daily_bin41.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=171.491 yref=20.0912 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1906       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1409       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0115       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.9158       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9976       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .80094E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10861E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8584       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.7642       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2928       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2497       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94242       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0140       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=   5570.358     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2482 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.663       -.91298E-06** at limit **
   2  Prefactor     8.1903        3.1962       -.18511E-07    .40603E-04
   3  Prefactor     2.1414        4.4233        .25196E-06   -.12970E-03
   4  Prefactor     .10000E-03    3.6061       -.15372E-06** at limit **
   5  Prefactor     .10000E-03    4.5989       -.85145E-07** at limit **
   6  Prefactor     .10000E-03    2.9728        .67117E-07** at limit **
   7  Prefactor     .10000E-03    4.6092       -.81032E-07** at limit **
   8  norm          1.0115        1.3317       -.34938E-07   -.97225E-04
   9  Prefactor     .10000E-03    1.1143        .13227E-07** at limit **
  10  Prefactor     .10000E-03    5.0139       -.27033E-07** at limit **
  11  norm          .10000E-03    10.627       -.10238E-05** at limit **
  12  norm          9.9176        11.732       -.39536E-06   -.92636E-04
  13  Prefactor     5.9823        8.3164        .17637E-05   -.49466E-03
  14  Prefactor     .10000E-03    15.438        .99582E-08** at limit **
  15  Prefactor     .10000E-03    11.241        .59817E-06** at limit **
  16  Prefactor     .10000E-03    11.777        .17931E-05** at limit **
  17  Prefactor     .10000E-03    3.7411        .94594E-07** at limit **
  18  Prefactor     3.8671        10.880       -.25570E-05   -.24523E-03
  19  Prefactor     .10000E-03    .50536        .57457E-07** at limit **
  20  norm          4.7644        2.0132        .87866E-08   -.50217E-04
  21  Prefactor     1.2949        31.430       -.69554E-07   -.80919E-04
  22  Prefactor     .10000E-03    2.3075       -.44149E-07** at limit **
  23  Prefactor     1.2489        2.3880        .28754E-06   -.88385E-04
  24  Normalizat    .94244        .17777       -.31054E-06    .19628E-04
  25  Prefactor     1.0139        .18411        .25093E-06    .13304E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.19031
  Prefactor  = 2.1414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.01149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.91764
  Prefactor  = 5.98225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.86709
  Prefactor  = 0.0001
  norm       = 4.7644
  Prefactor  = 1.29491
  Prefactor  = 0.0001
  Prefactor  = 1.24888
  Normalizat = 0.94244
  Prefactor  = 1.01394
 **********
 **   18 **HESSE 
 **********

 FCN=   5570.358     FROM HESSE     STATUS=OK           427 CALLS     2909 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.195        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.1903        3.1955        .80089E-04   -1.5136    
   3  Prefactor     2.1414        4.4320        .21906E-03   -1.5415    
   4  Prefactor     .10000E-03    3.6348        .13842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6163        .15631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9754        .12568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6192        .15650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0115        1.3330        .52454E-04   -1.5507    
   9  Prefactor     .10000E-03    1.1283        .76898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.1176        .16317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    10.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.9176        11.832        .12725E-03   -1.5078    
  13  Prefactor     5.9823        9.2907        .81979E-03   -1.5219    
  14  Prefactor     .10000E-03    162.21        .55778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.7441        .14099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8671        11.556        .20544E-03   -1.5315    
  19  Prefactor     .10000E-03    .51341        .51809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.7644        2.0147        .66455E-04   -1.5271    
  21  Prefactor     1.2949        33.852        .38928E-03   -1.5480    
  22  Prefactor     .10000E-03    2.3365        .11049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.2489        2.3670        .15293E-03   -1.5484    
  24  Normalizat    .94244        .20504        .23787E-03   -.94984    
  25  Prefactor     1.0139        .21384        .24708E-03   -.92266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.10794e-10
Minuit parameter uncertainties:
  1  7.69436e-05
  2  3.19557
  3  4.4327
  4  8.34026e-06
  5  5.55233e-06
  6  2.63451e-06
  7  5.38925e-06
  8  1.33307
  9  8.55838e-08
  10  7.87579e-06
  11  8.93937e-05
  12  11.8344
  13  9.29296
  14  0.000301873
  15  5.196e-05
  16  0.000148909
  17  4.68745e-06
  18  11.5627
  19  1.13613e-06
  20  2.01471
  21  13.2495
  22  7.48047e-06
  23  2.36715
  24  0.205213
  25  0.214016
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  5.982e+00  9.293e+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:  1.014e+00  2.140e-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.424e-01  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/778484/likelihoodResults_249955201_250214401_4FGL_J1125.9+2005_daily_bin41.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) = 5570.31285993
delta logL = 0.044897101563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5570.29236292
delta logL = 0.0653941093642

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0967       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6139       1.0000          .0000       10.000    
     3 'Normalizat'    .93400       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0195       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=   5570.292     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      217 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0882        216.35        .49795E-02    .35980E-03
   2  Index         2.6144        6.2341        .14667        .11009E-03
   3  Normalizat    .93396        .59493E-01    .45335E-01   -.13273E-03
   4  Prefactor     1.0195        .58010E-01    .42193E-01   -.13340E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.0882
  Index      = 2.61436
  Normalizat = 0.933961
  Prefactor  = 1.01948
 **********
 **   18 **HESSE 
 **********

 FCN=   5570.292     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0882        10.182        .19918E-03   -1.5304    
   2  Index         2.6144        1.2583        .89861E-02   -.49738    
   3  Normalizat    .93396        .19972        .23884E-03   -.95277    
   4  Prefactor     1.0195        .21303        .24647E-03   -.92083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29422e-10
Minuit parameter uncertainties:
  1  10.1865
  2  1.27611
  3  0.199879
  4  0.213204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/778484': 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) = 5570.29236216
delta logL = 0.0653948716217

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  4.088e+00  1.019e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.614e+00  1.276e+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.019e+00  2.132e-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.340e-01  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.60
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/778484/cmap_HighResolution_249955201_250214401_4FGL_J1125.9+2005_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.45e-03', job_status='DONE', photon_flux_upper_limit='8.44e-08', time_completed='2021-09-03 20:30:03.409767', job_id='778484', GAL2='1.02', fit_tolerance='1e-08', EG2='0.93', EG='0.94', time_epoch_completed='1630726203.41', return_code2='0', ts='0.60', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='6.54e-02', ts2='0.74', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='41' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:30:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 778484: <4FGL_J1125.9+2005_daily_bin41> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin41 171.491 20.0912 249955201 250214401 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 :                                   671.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            822 sec.

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

