/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 82 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 = 7436
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1125.9+2005_daily_bin72
RA = 171.491, Dec = 20.0912
tmin = 257990401, tmax = 258249601
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='778532', job_status='RUN', time_executed='2021-09-03 20:18:35.188971', time_epoch_executed='1630725515.19' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/778532

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/778532/ft1_4FGL_J1125.9+2005_daily_bin72.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/778532/ft2_4FGL_J1125.9+2005_daily_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/778532/ft1_4FGL_J1125.9+2005_daily_bin72.fits outfile=/scratch/kocevski/778532/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin72.fits ra=171.491 dec=20.0912 rad=12.0 tmin=257990401.0 tmax=258249601.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.42
user 1.26
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/778532/ft1_filtered_4FGL_J1125.9+2005_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/778532/ft2_4FGL_J1125.9+2005_daily_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/778532/ltcube_257990401_258249601_4FGL_J1125.9+2005_daily_bin72.fits outfile=/scratch/kocevski/778532/expmap_257990401_258249601_4FGL_J1125.9+2005_daily_bin72.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/778532/ltcube_257990401_258249601_4FGL_J1125.9+2005_daily_bin72.fits
.....................!
real 193.80
user 189.07
sys 4.06

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/778532/ft1_filtered_4FGL_J1125.9+2005_daily_bin72.fits scfile=/scratch/kocevski/778532/ft2_4FGL_J1125.9+2005_daily_bin72.fits outfile=/scratch/kocevski/778532/cmap_257990401_258249601_4FGL_J1125.9+2005_daily_bin72.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/778532/ft1_filtered_4FGL_J1125.9+2005_daily_bin72.fits scfile=/scratch/kocevski/778532/ft2_4FGL_J1125.9+2005_daily_bin72.fits outfile=/scratch/kocevski/778532/cmap_HighResolution_257990401_258249601_4FGL_J1125.9+2005_daily_bin72.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9998       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4211       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.402       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3921       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.547       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1078       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .41477       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5773       1.0000         .10000E-03   10000.    
    11 'norm      '    .11066E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    10.324       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.616       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .36714E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.9044       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.836       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2455       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0869       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91817       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=   5706.962     FROM MIGRAD    STATUS=CONVERGED   1058 CALLS     3455 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9973        8.9176        .14176E-03    .12046E-03
   2  Prefactor     1.4215        2.3894        .14242E-03    .24314E-03
   3  Prefactor     10.403        8.2192        .12423E-03    .15420E-03
   4  Prefactor     3.3921        9.0912        .21968E-03    .14247E-03
   5  Prefactor     .10000E-03    8.2160        .18142E-02** at limit **
   6  Prefactor     .10000E-03    3.5473        .13888E-02** at limit **
   7  Prefactor     21.542        17.549        .86289E-04    .90249E-04
   8  norm          1.1082        1.4164        .96440E-04   -.33821E-03
   9  Prefactor     .41507        1.5755        .15945E-02    .44770E-02
  10  Prefactor     6.5783        6.3192        .15648E-03   -.37926E-04
  11  norm          .10000E-03    17.353        .67403E-01** at limit **
  12  norm          10.323        9.4052        .12470E-03   -.49504E-04
  13  Prefactor     .10000E-03    7.5737        .18142E-02** at limit **
  14  Prefactor     33.612        20.069        .69114E-04   -.27305E-04
  15  Prefactor     .10001E-03    51.036        .12588    ** at limit **
  16  Prefactor     .10000E-03    5.0950        .16635E-02** at limit **
  17  Prefactor     .10000E-03    10.841        .18142E-02** at limit **
  18  Prefactor     .10000E-03    4.3991        .15428E-02** at limit **
  19  Prefactor     .10000E-03    1.7314        .13140E-02** at limit **
  20  norm          6.9045        2.3109        .64216E-04   -.69930E-04
  21  Prefactor     15.827        14.651        .10065E-03   -.94659E-04
  22  Prefactor     .10000E-03    1.5050        .89798E-03** at limit **
  23  Prefactor     1.2458        1.8318        .12229E-03   -.74931E-04
  24  Normalizat    1.0867        .22572        .23756E-03   -.23212E-03
  25  Prefactor     .91824        .22009        .27078E-03   -.53405E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.99729
  Prefactor  = 1.42146
  Prefactor  = 10.4034
  Prefactor  = 3.39214
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.5421
  norm       = 1.10824
  Prefactor  = 0.415068
  Prefactor  = 6.57835
  norm       = 0.000100001
  norm       = 10.3234
  Prefactor  = 0.0001
  Prefactor  = 33.6118
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.90451
  Prefactor  = 15.8273
  Prefactor  = 0.0001
  Prefactor  = 1.24575
  Normalizat = 1.08668
  Prefactor  = 0.918238
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.962     FROM HESSE     STATUS=OK           423 CALLS     3878 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9973        8.9162        .56703E-05   -1.5142    
   2  Prefactor     1.4215        2.3889        .56969E-05   -1.5470    
   3  Prefactor     10.403        8.2187        .49692E-05   -1.5063    
   4  Prefactor     3.3921        9.0864        .87871E-05   -1.5340    
   5  Prefactor     .10000E-03    8.2174        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5474        .27776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.542        17.544        .34516E-05   -1.4779    
   8  norm          1.1082        1.4164        .38576E-05   -1.5497    
   9  Prefactor     .41507        1.5734        .31890E-03   -1.5579    
  10  Prefactor     6.5783        6.3190        .62590E-05   -1.5195    
  11  norm          .10000E-03    14.850        .74605E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.323        9.4052        .49880E-05   -1.5065    
  13  Prefactor     .10000E-03    7.5760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     33.612        20.068        .27646E-05   -1.4548    
  15  Prefactor     .10001E-03    50.740        .12632       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.0952        .33271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.843        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3998        .30856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.7397        .26279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.9045        2.3109        .25686E-05   -1.5182    
  21  Prefactor     15.827        14.651        .40258E-05   -1.4912    
  22  Prefactor     .10000E-03    1.5052        .17960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.2458        1.8318        .48915E-05   -1.5485    
  24  Normalizat    1.0867        .22583        .47511E-04   -.90181    
  25  Prefactor     .91824        .22030        .10831E-04   -.95507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84689e-10
Minuit parameter uncertainties:
  1  8.9177
  2  2.38906
  3  8.21956
  4  9.09011
  5  8.97541e-05
  6  4.23328e-06
  7  17.5482
  8  1.41645
  9  1.57351
  10  6.31964
  11  0.000221941
  12  9.40652
  13  2.31164e-06
  14  20.0723
  15  0.00146291
  16  1.55326e-06
  17  1.3607e-05
  18  6.42958e-07
  19  4.78323e-05
  20  2.31096
  21  14.6541
  22  3.6924e-06
  23  1.83185
  24  0.226032
  25  0.220513
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.312e-06  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.182e-01  2.205e-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.087e+00  2.260e-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: 6.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/778532/likelihoodResults_257990401_258249601_4FGL_J1125.9+2005_daily_bin72.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5706.96280795
delta logL = -0.000629099644357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5706.96217896
delta logL = -1.11436747829e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2329       1.0000          .0000       10.000    
     3 'Normalizat'    1.0866       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91829       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=   5706.962     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      235 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10021E-03    68.908        .18142E-02** at limit **
   2  Index         2.2099        6.9475        .50000        .78287E-05
   3  Normalizat    1.0867        .13509E-01    .23756E-03    .20052E-04
   4  Prefactor     .91824        .14350E-01    .27078E-03    .14485E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100209
  Index      = 2.20995
  Normalizat = 1.08668
  Prefactor  = 0.918236
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.962     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10021E-03    316.87        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2099        7.5310        .50000       -.59199    
   3  Normalizat    1.0867        .30203E-01    .95023E-05   -.90181    
   4  Prefactor     .91824        .32080E-01    .10831E-04   -.95507    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.04166e-09
Minuit parameter uncertainties:
  1  0.0163437
  2  586.076
  3  0.0302036
  4  0.0320811
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/778532': 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) = 5706.96217879
delta logL = 5.2954419516e-08

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.002e-04  1.634e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.210e+00  5.861e+02  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.182e-01  3.208e-02  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.087e+00  3.020e-02  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/778532/cmap_HighResolution_257990401_258249601_4FGL_J1125.9+2005_daily_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.93e-03', job_status='DONE', photon_flux_upper_limit='6.45e-08', time_completed='2021-09-03 20:31:25.387972', job_id='778532', GAL2='0.92', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630726285.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='5.30e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='72' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:31:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 778532: <4FGL_J1125.9+2005_daily_bin72> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin72 171.491 20.0912 257990401 258249601 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 :                                   767.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            902 sec.

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

