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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin644
RA = 171.491, Dec = 20.0912
tmin = 406252801, tmax = 406512001
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='781756', job_status='RUN', time_executed='2021-09-03 20:28:03.850476', time_epoch_executed='1630726083.85' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781756

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781756/ft1_4FGL_J1125.9+2005_daily_bin644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781756/ft2_4FGL_J1125.9+2005_daily_bin644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781756/ft1_4FGL_J1125.9+2005_daily_bin644.fits outfile=/scratch/kocevski/781756/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin644.fits ra=171.491 dec=20.0912 rad=12.0 tmin=406252801.0 tmax=406512001.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 3.89
user 3.67
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/781756/ft1_filtered_4FGL_J1125.9+2005_daily_bin644.fits" evtable="EVENTS" scfile=/scratch/kocevski/781756/ft2_4FGL_J1125.9+2005_daily_bin644.fits sctable="SC_DATA" outfile=/scratch/kocevski/781756/ltcube_406252801_406512001_4FGL_J1125.9+2005_daily_bin644.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/781756/ft2_4FGL_J1125.9+2005_daily_bin644.fits
.....................!
real 16.07
user 15.64
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781756/ft1_filtered_4FGL_J1125.9+2005_daily_bin644.fits evtable="EVENTS" scfile=/scratch/kocevski/781756/ft2_4FGL_J1125.9+2005_daily_bin644.fits sctable="SC_DATA" expcube=/scratch/kocevski/781756/ltcube_406252801_406512001_4FGL_J1125.9+2005_daily_bin644.fits outfile=/scratch/kocevski/781756/expmap_406252801_406512001_4FGL_J1125.9+2005_daily_bin644.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/781756/ltcube_406252801_406512001_4FGL_J1125.9+2005_daily_bin644.fits
.....................!
real 195.39
user 189.29
sys 5.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/781756/ft1_filtered_4FGL_J1125.9+2005_daily_bin644.fits scfile=/scratch/kocevski/781756/ft2_4FGL_J1125.9+2005_daily_bin644.fits outfile=/scratch/kocevski/781756/cmap_406252801_406512001_4FGL_J1125.9+2005_daily_bin644.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/781756/ft1_filtered_4FGL_J1125.9+2005_daily_bin644.fits scfile=/scratch/kocevski/781756/ft2_4FGL_J1125.9+2005_daily_bin644.fits outfile=/scratch/kocevski/781756/cmap_HighResolution_406252801_406512001_4FGL_J1125.9+2005_daily_bin644.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0972       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4206       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.108       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3179       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.940       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11273E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1740       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7138       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0400       1.0000         .10000E-03   10000.    
    11 'norm      '    12.250       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16272E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.4737       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.343       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6141       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6456       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.2204       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.2431       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84181       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1595       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=   5554.561     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     3369 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8123       -.24691E-07** at limit **
   2  Prefactor     1.0981        2.6006        .21807E-06   -.28129E-03
   3  Prefactor     4.4215        6.1338       -.15778E-06   -.15642E-03
   4  Prefactor     14.107        11.688        .11805E-05    .30425E-03
   5  Prefactor     2.3206        14.327       -.24105E-05   -.17874E-03
   6  Prefactor     12.940        13.960        .34082E-06    .23876E-04
   7  Prefactor     .10000E-03    22.112       -.19979E-06** at limit **
   8  norm          1.1742        1.3229       -.40966E-07   -.26826E-03
   9  Prefactor     2.7140        2.6625        .20129E-07   -.33536E-04
  10  Prefactor     3.0398        4.3196        .70867E-07   -.12808E-04
  11  norm          12.247        13.210        .30628E-05    .60161E-03
  12  norm          .10000E-03    5.4782        .35341E-07** at limit **
  13  Prefactor     .10000E-03    11.778       -.31074E-06** at limit **
  14  Prefactor     .10000E-03    4.7823        .98534E-08** at limit **
  15  Prefactor     .10002E-03    40.369       -.19143E-05** at limit **
  16  Prefactor     7.4743        9.8298        .76344E-06    .62679E-04
  17  Prefactor     19.345        18.653       -.35088E-05   -.49154E-03
  18  Prefactor     .10000E-03    12.558        .53454E-06** at limit **
  19  Prefactor     1.6143        1.5560        .26475E-06    .74304E-04
  20  norm          1.6457        1.6045        .20429E-06   -.32353E-04
  21  Prefactor     3.2200        9.9153        .48768E-05   -.78335E-03
  22  Prefactor     2.2431        2.6496        .91664E-07   -.67518E-04
  23  Prefactor     .10000E-03    .89919        .27622E-08** at limit **
  24  Normalizat    .84186        .19034       -.64810E-06    .12722E-03
  25  Prefactor     1.1594        .19148       -.51063E-06    .12838E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.09809
  Prefactor  = 4.42155
  Prefactor  = 14.1067
  Prefactor  = 2.32058
  Prefactor  = 12.9405
  Prefactor  = 0.0001
  norm       = 1.17421
  Prefactor  = 2.71395
  Prefactor  = 3.03976
  norm       = 12.2474
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 7.47435
  Prefactor  = 19.3452
  Prefactor  = 0.0001
  Prefactor  = 1.61429
  norm       = 1.64568
  Prefactor  = 3.22004
  Prefactor  = 2.24315
  Prefactor  = 0.0001
  Normalizat = 0.841859
  Prefactor  = 1.15936
 **********
 **   18 **HESSE 
 **********

 FCN=   5554.561     FROM HESSE     STATUS=OK           435 CALLS     3804 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0981        2.5779        .17118E-03   -1.5498    
   3  Prefactor     4.4215        6.1336        .19154E-03   -1.5287    
   4  Prefactor     14.107        11.534        .10664E-03   -1.4957    
   5  Prefactor     2.3206        14.036        .26944E-03   -1.5403    
   6  Prefactor     12.940        13.889        .11135E-03   -1.4988    
   7  Prefactor     .10000E-03    22.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1742        1.2939        .85957E-04   -1.5491    
   9  Prefactor     2.7140        2.6496        .10919E-03   -1.5378    
  10  Prefactor     3.0398        4.3086        .17933E-03   -1.5359    
  11  norm          12.247        13.368        .11445E-03   -1.5008    
  12  norm          .10000E-03    5.4981        .17034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.7851        .15916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    325.35        .88039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.4743        9.8214        .14670E-03   -1.5161    
  17  Prefactor     19.345        19.219        .91068E-04   -1.4828    
  18  Prefactor     .10000E-03    12.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.6143        1.5367        .86183E-04   -1.5454    
  20  norm          1.6457        1.5871        .89174E-04   -1.5451    
  21  Prefactor     3.2200        12.716        .11287E-02   -1.5349    
  22  Prefactor     2.2431        2.6387        .12711E-03   -1.5408    
  23  Prefactor     .10000E-03    .91953        .68990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .84186        .22070        .25918E-03   -.98534    
  25  Prefactor     1.1594        .22477        .24521E-03   -.87591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67106e-09
Minuit parameter uncertainties:
  1  1.54255e-05
  2  2.57818
  3  6.13446
  4  11.5355
  5  11.4179
  6  13.8926
  7  6.87415e-05
  8  1.29392
  9  2.64971
  10  4.30902
  11  13.3715
  12  1.18357e-05
  13  1.3363e-05
  14  1.59875e-06
  15  0.0048195
  16  9.8235
  17  19.2256
  18  5.56565e-05
  19  1.53678
  20  1.58713
  21  12.7268
  22  2.63884
  23  6.4002e-07
  24  0.220933
  25  0.224954
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.336e-05  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.159e+00  2.250e-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:  8.419e-01  2.209e-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: 7.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/781756/likelihoodResults_406252801_406512001_4FGL_J1125.9+2005_daily_bin644.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) = 5554.56156217
delta logL = -0.000400281473048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5554.56116202
delta logL = -1.32294189825e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2655       1.0000          .0000       10.000    
     3 'Normalizat'    .84174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1595       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5554.561     FROM MIGRAD    STATUS=FAILED        89 CALLS      243 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    163.28        .18142E-02** at limit **
   2  Index         2.2906        8.5378        .50000       -.18032E-04
   3  Normalizat    .84186        .20105        .25918E-03    .82508E-04
   4  Prefactor     1.1594        .22062        .24521E-03    .70704E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5554.561     FROM SIMPLEX   STATUS=UNCHANGED    163 CALLS      406 TOTAL
                     EDM=   .79E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    163.28        .52813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2906        8.5378        .47517E-04   -.57267    
   3  Normalizat    .84186        .20105        .92381E-05   -.98534    
   4  Prefactor     1.1594        .22062        .28427E-05   -.87591    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5554.561     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      439 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.247        .36285E-03** at limit **
   2  Index         2.2908        6.1440        .50000       -.18035E-04
   3  Normalizat    .84186        .20121        .10367E-04    .65357E-04
   4  Prefactor     1.1594        .22084        .98083E-05    .56563E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.29079
  Normalizat = 0.841858
  Prefactor  = 1.15936
 **********
 **   18 **HESSE 
 **********

 FCN=   5554.561     FROM HESSE     STATUS=OK            29 CALLS      468 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.491        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2908        6.1454        .50000       -.57263    
   3  Normalizat    .84186        .20131        .20734E-05   -.98534    
   4  Prefactor     1.1594        .22094        .19617E-05   -.87591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19809e-10
Minuit parameter uncertainties:
  1  0.000448926
  2  4.20779
  3  0.201486
  4  0.22112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781756': 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) = 5554.56116168
delta logL = 2.04388015845e-07

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  4.489e-04  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.291e+00  4.208e+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.159e+00  2.211e-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:  8.419e-01  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/781756/cmap_HighResolution_406252801_406512001_4FGL_J1125.9+2005_daily_bin644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.55e-03', job_status='DONE', photon_flux_upper_limit='7.27e-08', time_completed='2021-09-03 20:41:10.436304', job_id='781756', GAL2='1.16', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630726870.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='2.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='644' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:41:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 781756: <4FGL_J1125.9+2005_daily_bin644> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin644> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 20:26:36 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:27:43 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:27:43 2021
Terminated at Fri Sep  3 20:41:10 2021
Results reported at Fri Sep  3 20:41:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin644 171.491 20.0912 406252801 406512001 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 :                                   772.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            874 sec.

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

